- Docker
- docker-compose
- Ruby 3.1.1
- Install dependencies with
bundle install
- Setup RabbitMQ using
docker-compose up
- (Optional) Add
rabbitmq_management
plugin to RabbitMQ usingdocker exec YOUR-CONTAINER-ID rabbitmq-plugins enable rabbitmq_management
(this will enable RabbitMQ admin panel onhttp://0.0.0.0:15672
) - Start a Sneakers server with
rake sneakers:run WORKERS=CreateNetPromoterScoreWorker
- Start the server with
rails server
Simply run rake run_tests
This will create a Sneakers server and run the tests.
Rake tests leave ruby instances running in the background running unless all rubies instances are terminated together, so all ruby pids are terminated, this may lead to a server stopping, because all running rubies all will receive SIGTERM.