Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Readme.md #826

Merged
merged 2 commits into from Aug 11, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
27 changes: 16 additions & 11 deletions Readme.md
Expand Up @@ -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!)_
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- use `ENV['TEST_ENV_NUMBER']` inside your tests to select separate db/memcache/etc. _(Remember to expose this to docker if using compose!)_
- use `ENV['TEST_ENV_NUMBER']` inside your tests to select separate db/memcache/etc. (docker compose: expose it)

-
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove extra - ?

- Only run a subset of files / folders:

`parallel_test test/bar test/baz/foo_text.rb`

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove space

- 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**:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Pass in any custom cucumber runtime option, by using the -o flag. **NB: You must wrap everything in quotes**:
- Pass in test options, by using the -o flag (wrap everything in quotes):


`parallel_cucumber -n 2 -o '-p foo_profile --tags @only_this_tag or @only_that_tag --format summary'`

Options are:
<!-- copy output from bundle exec ./bin/parallel_test -h -->
Expand Down