From a9ee96306ba829ddb5caf7e57119288f370df3f3 Mon Sep 17 00:00:00 2001 From: Tobias Pfeiffer Date: Tue, 11 Aug 2020 20:09:14 +0200 Subject: [PATCH] Highlight availability of ParallelTests module (#773) * Highlight availability of ParallelTests module Fixes #772 * Add explicit require as a fix instead --- Readme.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Readme.md b/Readme.md index 3463335a..29e99ff6 100644 --- a/Readme.md +++ b/Readme.md @@ -82,6 +82,8 @@ Running things once =================== ```Ruby +require "parallel_tests" + # preparation: # affected by race-condition: first process may boot slower than the second # either sleep a bit or use a lock for example File.lock @@ -97,7 +99,6 @@ at_exit do undo_something end end - ``` Even test group run-times @@ -258,7 +259,7 @@ TIPS - Use [rspec-retry](https://github.com/NoRedInk/rspec-retry) (not rspec-rerun) to rerun failed tests. - [JUnit formatter configuration](https://github.com/grosser/parallel_tests/wiki#with-rspec_junit_formatter----by-jgarber) - Use [parallel_split_test](https://github.com/grosser/parallel_split_test) to run multiple scenarios in a single spec file, concurrently. (`parallel_tests` [works at the file-level and intends to stay that way](https://github.com/grosser/parallel_tests/issues/747#issuecomment-580216980)) - + ### Cucumber - Add a `parallel: foo` profile to your `config/cucumber.yml` and it will be used to run parallel tests