Created
January 5, 2010 07:31
-
-
Save awesome/269221 to your computer and use it in GitHub Desktop.
turn on color for output; cucumber (0.5.3), cucumber-rails (0.2.2)
This file contains hidden or 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
| <% | |
| rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : "" | |
| rerun_opts = rerun.to_s.strip.empty? ? "--format progress features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}" | |
| std_opts = "#{rerun_opts} --format rerun --out rerun.txt --strict --tags ~@wip" | |
| %> | |
| # ORIGINAL: | |
| #default: <%= std_opts %> | |
| #wip: --tags @wip:3 --wip features | |
| # PATCH: | |
| default: <%= std_opts %> --color | |
| wip: --tags @wip:3 --wip features --color |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment