From f49e6b311aa36efd542aab8c5aa1a2a71d101201 Mon Sep 17 00:00:00 2001 From: Stephen Margheim Date: Thu, 3 Aug 2023 14:56:46 +0200 Subject: [PATCH] Update README to discuss how to set the Ruby version for a test run --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 9be3989..6195d19 100644 --- a/README.md +++ b/README.md @@ -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