mirror of
https://github.com/elastic/logstash.git
synced 2025-04-25 07:07:54 -04:00
parent
ca89cfee75
commit
23c7f48aad
1 changed files with 8 additions and 0 deletions
|
@ -184,6 +184,14 @@ Most of the unit tests in Logstash are written using [rspec](http://rspec.info/)
|
||||||
|
|
||||||
./gradlew check
|
./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.
|
Sometimes you might find a change to a piece of Logstash code causes a test to hang. These can be hard to debug.
|
||||||
|
|
||||||
If you set `LS_JAVA_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005"` you can connect to a running Logstash with your IDEs debugger which can be a great way of finding the issue.
|
If you set `LS_JAVA_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005"` you can connect to a running Logstash with your IDEs debugger which can be a great way of finding the issue.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue