From 74a5f33cbedb9e2999f72fc98249232dddb11684 Mon Sep 17 00:00:00 2001 From: Michael Klishin Date: Fri, 29 Sep 2023 09:31:08 -0400 Subject: [PATCH] Update README.md --- README.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d7a56cb..41a85a7 100644 --- a/README.md +++ b/README.md @@ -347,8 +347,21 @@ ps = client.clear_permissions_of("/", "guest") ## Running Tests - bundle install - bundle exec rspec -cfd spec +Before running the test suites, run a script that will set up the local node: + +``` shell +export RUBY_RABBITMQ_HTTP_API_CLIENT_RABBITMQCTL="rabbitmqctl" +export RUBY_RABBITMQ_HTTP_API_CLIENT_RABBITMQ_PLUGINS="rabbitmq-plugins" + +./bin/ci/before_build.sh +``` + +To run all specs: + +``` shell +bundle install +bundle exec rspec -cfd spec +``` The test suite assumes that RabbitMQ is running locally with stock settings and rabbitmq-management plugin enabled.