Readme.md in parallel_tests-0.6.1 vs Readme.md in parallel_tests-0.6.2

- old
+ new

@@ -1,6 +1,7 @@ -Speedup Test::Unit + RSpec + Cucumber by running parallel on multiple CPUs (or cores). +Speedup Test::Unit + RSpec + Cucumber by running parallel on multiple CPUs (or cores).<br/> +ParallelTests splits tests into even groups and runs each group in a single process with its own database. Setup for Rails =============== ## Install ### Rails 3 @@ -39,10 +40,13 @@ config.gem "parallel" ./script/plugin install git://github.com/grosser/parallel_tests.git ## Setup +ParallelTests uses 1 database per test-process, 2 processes will use `*_test` and `*_test2`. + + ### 1: Add to `config/database.yml` test: database: xxx_test<%= ENV['TEST_ENV_NUMBER'] %> ### 2: Create additional database(s) @@ -59,11 +63,11 @@ rake parallel:test[1] --> force 1 CPU --> 86 seconds rake parallel:test --> got 2 CPUs? --> 47 seconds rake parallel:test --> got 4 CPUs? --> 26 seconds ... -Test by pattern (e.g. use one integration server per subfolder / see if you broke any user-related tests) +Test by pattern (e.g. use one integration server per subfolder / see if you broke any 'user'-related tests) rake parallel:test[^unit] # everything in test/unit folder (every test file matching /^unit/) rake parallel:test[user] # run users_controller + user_helper + user tests rake parallel:test['user|product'] # run user and product related tests @@ -71,12 +75,10 @@ Example output -------------- 2 processes for 210 specs, ~ 105 specs per process ... test output ... - Results: - 877 examples, 0 failures, 11 pending 843 examples, 0 failures, 1 pending Took 29.925333 seconds Spec Loggers @@ -209,9 +211,10 @@ - [Levent Ali](http://purebreeze.com/) - [Michael Kintzer](https://github.com/rockrep) - [nathansobo](https://github.com/nathansobo) - [Joe Yates](http://titusd.co.uk) - [asmega](http://www.ph-lee.com) + - [Doug Barth](https://github.com/dougbarth) [Michael Grosser](http://grosser.it)<br/> michael@grosser.it<br/> Hereby placed under public domain, do what you want, just do not hold me accountable...