mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
This commit adds a Rakefile, Gemfile, and Travis CI config file. The Rakefile contains two tasks: test and junit. Both targets execute the spec tests, with the difference being how the results are presented. The Gemfile defines dependencies and a test group. To install just the gems needed for running the application, execute: * `bundle install --without test` The new .travis.yml file is for Travis CI and targets the major ruby versions.
13 lines
355 B
Ruby
13 lines
355 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
|