elastic / logstash-devutils

An assortment of tooling/libraries to make Logstash core and plugin development and releasing a bit easier.
Apache License 2.0
17 stars 29 forks source link

Feat: shared test (spec) task for all! #96

Closed kares closed 2 years ago

kares commented 3 years ago

adds a rake spec task to effectively run rspec, also introduces a test task convention to run Java tests (if available) followed by a spec run

NOTE: both spec and gradle test invocations will exit the Rake process with non-zero when failing The vendor task is already present, plugins are usually expected to override (e.g. doing a ./gradlew clean vendor)

The default rake test task is meant to be leveraged by .ci (in a follow-up https://github.com/logstash-plugins/.ci/pull/36)


NOTE: has been tested with useragent filter, date filter and DLQ input (which all have Java tests).