Created
December 31, 2010 03:52
-
-
Save martinos/760698 to your computer and use it in GitHub Desktop.
Gem rake file with bacon support
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
| desc "Run all the tests" | |
| task :default => [:test] | |
| desc "Test" | |
| task :test do | |
| output = 'SpecDoxOutput' | |
| Bacon.extend Bacon.const_get(output) rescue abort "No such formatter: #{output}" | |
| Bacon.summary_on_exit | |
| files = [] | |
| files.concat Dir["test/**/test_*.rb"] | |
| files.concat Dir["test/**/spec_*.rb"] | |
| files.concat Dir["spec/**/spec_*.rb"] | |
| files.concat Dir["spec/**/*_spec.rb"] | |
| puts files | |
| files.each{ |file| load file } | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment