From 2b5c87ba010b3348d02310a8d04b96238a844d79 Mon Sep 17 00:00:00 2001 From: Tobias Pfeiffer Date: Tue, 11 Aug 2020 17:27:18 +0200 Subject: [PATCH 1/2] Highlight availability of ParallelTests module Fixes #772 --- Readme.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index 3463335a..ba21e127 100644 --- a/Readme.md +++ b/Readme.md @@ -97,9 +97,10 @@ at_exit do undo_something end end - ``` +_note:_ when using the standalone runners (`parallel_rspec`, `parallel_test`, ...) then the `ParallelTests` module isn't available. + Even test group run-times ========================= From f967f8b7da1cfac3a2af407ee59ba4428353ff50 Mon Sep 17 00:00:00 2001 From: Tobias Pfeiffer Date: Tue, 11 Aug 2020 19:51:17 +0200 Subject: [PATCH 2/2] Add explicit require as a fix instead --- Readme.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Readme.md b/Readme.md index ba21e127..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 @@ -99,8 +101,6 @@ at_exit do end ``` -_note:_ when using the standalone runners (`parallel_rspec`, `parallel_test`, ...) then the `ParallelTests` module isn't available. - Even test group run-times ========================= @@ -259,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