Skip to content

Commit

Permalink
Update README to discuss how to set the Ruby version for a test run
Browse files Browse the repository at this point in the history
  • Loading branch information
fractaledmind committed Aug 3, 2023
1 parent f411b32 commit f49e6b3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,13 @@ Finally, if you need to only run one particular test case itself, use the `TESTO
TESTOPTS="--name=test_deliver_acidicly_on_noticed_notification_with_only_database_delivery"
```

You may also need to run the test suite with a particular Ruby version. If you are using the ASDF version manager, you can set the Ruby version with the `ASDF_RUBY_VERSION` ENV variable, e.g.:
```sh
ASDF_RUBY_VERSION=2.7.7 bundle exec rake test
```

If you are using `rbenv` to manage your Ruby versions, you can use the `RBENV_VERSION` ENV variable instead.

These options can of course be combined to help narrow down your debugging when you find a failing test in CI.

## Contributing
Expand Down

0 comments on commit f49e6b3

Please sign in to comment.