From 23c7f48aad01c22a1a0e3401c0dae687ab58e28c Mon Sep 17 00:00:00 2001 From: andsel Date: Fri, 24 Jan 2020 12:40:31 +0100 Subject: [PATCH] Updated README to document how to run single Ruby specs Fixes #11536 --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index f2ecc12f5..98dfd88ec 100644 --- a/README.md +++ b/README.md @@ -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.