[katello-devel] parallel_tests pull request and howto

Mike McCune mmccune at redhat.com
Tue Oct 16 16:03:24 UTC 2012


I sent a PR yesterday to add parallel_tests to our setup.  I found when 
running parallel_tests with our spec tests on my 4-core workstation my 
execution went from ~12 minutes down to around 4 minutes.

The pull request is here: https://github.com/Katello/katello/pull/859

To setup your system to run parallel_tests[1] you can for now check out 
my pull request then do:

$ bundle install

$ rake parallel:create

$ rake parallel:prepare

then to run the tests:

$ rake parallel:spec

it automatically detects the number of cores you have and spins up a 
separate chunk of tests on each CPU.


Mike

[1] https://github.com/grosser/parallel_tests


-- 
Mike McCune
mmccune AT redhat.com
Red Hat Engineering       | Portland, OR
Systems Management        | 650-254-4248




More information about the katello-devel mailing list