-
-
Save lmarburger/346950 to your computer and use it in GitHub Desktop.
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
exec_last_feature_or_test(){ | |
history|sort -r|sed -s 's/^ [0-9]* //'|while read i;do if [[ "$i" =~ ^ruby || "$i" =~ ^cucumber ]];then echo $i|sh;exit;fi;done | |
} |
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
$ exec_last_feature_or_test | |
Loaded suite test/unit/item_test | |
Started | |
stty: stdin isn't a terminal | |
Item | |
. | |
. | |
. | |
. | |
. | |
. | |
. | |
. | |
. | |
. | |
. | |
. | |
. | |
. | |
. | |
. | |
. | |
. | |
. | |
. | |
. | |
. | |
. | |
23 tests: all passed |
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
$ ruby -Itest test/unit/item_test.rb | |
Loaded suite test/unit/item_test | |
Started | |
Item ....................... | |
23 tests: all passed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment