Last active
August 29, 2015 13:56
-
-
Save petems/9072599 to your computer and use it in GitHub Desktop.
Parallel Tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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