From c3cf9d19dceea1a2f1bc53897ad0f5f5484ac3ae Mon Sep 17 00:00:00 2001 From: Luke Hill <20105237+luke-hill@users.noreply.github.com> Date: Tue, 10 Aug 2021 15:31:33 +0100 Subject: [PATCH] Update Readme.md --- Readme.md | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/Readme.md b/Readme.md index c88a03fd..a6a9314b 100644 --- a/Readme.md +++ b/Readme.md @@ -182,19 +182,24 @@ Setup for non-rails gem install parallel_tests # go to your project dir - parallel_test test/ - parallel_rspec spec/ - parallel_cucumber features/ - parallel_spinach features/ - - - use `ENV['TEST_ENV_NUMBER']` inside your tests to select separate db/memcache/etc. - - Only run selected files & folders: - + parallel_test + parallel_rspec + parallel_cucumber + parallel_spinach + + - use `ENV['TEST_ENV_NUMBER']` inside your tests to select separate db/memcache/etc. _(Remember to expose this to docker if using compose!)_ + - + - Only run a subset of files / folders: + `parallel_test test/bar test/baz/foo_text.rb` - + - Pass test-options and files via `--`: - - `parallel_test -- -t acceptance -f progress -- spec/foo_spec.rb spec/acceptance` + + `parallel_rspec -- -t acceptance -f progress -- spec/foo_spec.rb spec/acceptance` + + - Pass in any custom cucumber runtime option, by using the -o flag. **NB: You must wrap everything in quotes**: + + `parallel_cucumber -n 2 -o '-p foo_profile --tags @only_this_tag or @only_that_tag --format summary'` Options are: