vmpooler/Rakefile
Colin 7d77e76fc0 (QENG-2246) Add Default Rake Task
Add a default task that calls test.
2015-07-06 13:10:24 -07:00

15 lines
No EOL
380 B
Ruby

require 'rspec/core/rake_task'
desc 'Run rspec tests with coloring.'
RSpec::Core::RakeTask.new(:test) do |t|
t.rspec_opts = %w[--color]
t.pattern = 'spec/'
end
desc 'Run rspec tests and save JUnit output to results.xml.'
RSpec::Core::RakeTask.new(:junit) do |t|
t.rspec_opts = %w[-r yarjuf -f JUnit -o results.xml]
t.pattern = 'spec/'
end
task :default => [:test]