Skip to content

Instantly share code, notes, and snippets.

@petems
Last active August 29, 2015 13:56
Show Gist options
  • Save petems/9072599 to your computer and use it in GitHub Desktop.
Save petems/9072599 to your computer and use it in GitHub Desktop.
Parallel Tests
require 'parallel_tests'
require 'parallel_tests/cli'
require 'rspec/core/rake_task'
desc "Run rspec"
task :spec do
matched_files = FileList['**/*_spec.rb'].exclude(/vendor/)
cli_args = ['-t', 'rspec']
cli_args.concat(matched_files)
puts 'Running puppet specs (Parallel)'
ParallelTest::CLI.run(cli_args)
puts 'Puppet specs complete'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment