Readme.md in parallel_tests-0.8.13 vs Readme.md in parallel_tests-0.8.14

- old
+ new

@@ -10,25 +10,30 @@ ### Install If you use RSpec: ensure you got >= 2.4 As gem - # add to Gemfile - gem "parallel_tests", :group => :development - +```ruby +# add to Gemfile +gem "parallel_tests", :group => :development +``` OR as plugin rails plugin install git://github.com/grosser/parallel_tests.git - # add to Gemfile - gem "parallel", :group => :development +```ruby +# add to Gemfile +gem "parallel", :group => :development +``` ### Add to `config/database.yml` ParallelTests uses 1 database per test-process, 2 processes will use `*_test` and `*_test2`. - test: - database: yourproject_test<%= ENV['TEST_ENV_NUMBER'] %> +```yaml +test: + database: yourproject_test<%= ENV['TEST_ENV_NUMBER'] %> +``` ### Create additional database(s) rake parallel:create ### Copy development schema (repeat after migrations) @@ -73,14 +78,14 @@ If installed as plugin: -I vendor/plugins/parallel_tests/lib --format progress --format ParallelTests::RSpec::RuntimeLogger --out tmp/parallel_runtime_rspec.log Test::Unit: Add to your `test_helper.rb`: +```ruby +require 'parallel_tests/test/runtime_logger' +``` - require 'parallel_tests/test/runtime_logger' - - RSpec: SummaryLogger -------------------- This logger logs the test output without the different processes overwriting each other. @@ -162,11 +167,10 @@ - [Cucumber] add a `parallel: foo` profile to your `config/cucumber.yml` and it will be used to run parallel tests - [Capybara setup](https://github.com/grosser/parallel_tests/wiki) - [Sphinx setup](https://github.com/grosser/parallel_tests/wiki) - [Capistrano setup](https://github.com/grosser/parallel_tests/wiki/Remotely-with-capistrano) let your tests run on a big box instead of your laptop - [SQL schema format] use :ruby schema format to get faster parallel:prepare` - - [ActiveRecord] if you do not have `db:abort_if_pending_migrations` add this to your Rakefile: `task('db:abort_if_pending_migrations'){}` - `export PARALLEL_TEST_PROCESSORS=X` in your environment and parallel_tests will use this number of processors by default - [ZSH] use quotes to use rake arguments `rake "parallel:prepare[3]"` - [email_spec and/or action_mailer_cache_delivery](https://github.com/grosser/parallel_tests/wiki) - [Memcached] use different namespaces e.g. `config.cache_store = ..., :namespace => "test_#{ENV['TEST_ENV_NUMBER']}"` @@ -214,10 +218,11 @@ - [Pablo Manrubia Díez](https://github.com/pmanrubia) - [Slawomir Smiechura](https://github.com/ssmiech) - [Georg Friedrich](https://github.com/georg) - [R. Tyler Croy](https://github.com/rtyler) - [Ulrich Berkmüller](https://github.com/ulrich-berkmueller) - - [https://github.com/madmax](https://github.com/madmax) + - [Grzegorz Derebecki](https://github.com/madmax) + - [Florian Motlik](https://github.com/flomotlik) [Michael Grosser](http://grosser.it)<br/> michael@grosser.it<br/> License: MIT