mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
15 lines
404 B
Ruby
15 lines
404 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 --format documentation]
|
|
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]
|