Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (22 sloc) 519 Bytes
require 'rake/testtask'
task :default => :test
task :test do
sh "bacon -Ilib -Itest --automatic --quiet"
end
#Rake::TestTask.new(:test) do |t|
# t.libs << 'lib' << 'test'
# t.pattern = 'test/**/test_*.rb'
# t.verbose = false
#end
begin
require 'rcov/rcovtask'
Rcov::RcovTask.new do |t|
t.libs << 'lib' << 'test'
t.pattern = 'test/**/test_*.rb'
t.verbose = false
end
rescue LoadError
task :rcov do
abort "RCov is not available. In order to run rcov, you must: gem install rcov"
end
end
Jump to Line
Something went wrong with that request. Please try again.