Created
August 6, 2014 16:00
-
-
Save brasic/5574534c7ef93a7d60a6 to your computer and use it in GitHub Desktop.
Alias to list all specs created or modified since branching from master
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# run all specs created or modified since branching from master | |
# put this in ~/.bash_profile | |
alias recentspecs='git log --name-status master.. | egrep '^[MA].+spec.rb$' | cut -f2 | uniq' | |
# example: | |
# | |
# $ bundle exec rspec `recentspecs` | |
# ................. | |
# | |
# Finished in 0.6187 seconds | |
# 17 examples, 0 failures |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment