Skip to content

Instantly share code, notes, and snippets.

@martinos
Created December 31, 2010 03:52
Show Gist options
  • Select an option

  • Save martinos/760698 to your computer and use it in GitHub Desktop.

Select an option

Save martinos/760698 to your computer and use it in GitHub Desktop.
Gem rake file with bacon support
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