Updated README to document how to run single Ruby specs

Fixes #11536
This commit is contained in:
andsel 2020-01-24 12:40:31 +01:00 committed by Andrea Selva
parent ca89cfee75
commit 23c7f48aad

View file

@ -183,6 +183,14 @@ Most of the unit tests in Logstash are written using [rspec](http://rspec.info/)
3- To execute the complete test-suite including the integration tests run:
./gradlew check
4- To execute a single Ruby test run:
SPEC_OPTS="-fd -P logstash-core/spec/logstash/api/commands/default_metadata_spec.rb" ./gradlew :logstash-core:rubyTests --tests org.logstash.RSpecTests
5- To execute single spec for integration test, run:
./gradlew integrationTests -PrubyIntegrationSpecs=specs/slowlog_spec.rb
Sometimes you might find a change to a piece of Logstash code causes a test to hang. These can be hard to debug.