Skip to content

Commit

Permalink
Adding example of running tests without a snapshot build (elastic#65899)
Browse files Browse the repository at this point in the history
It can be difficult to know how to run release builds. Certain changes require that tests run without a snapshot build (consider testing a feature behind a feature flag).

This adds a small doc line specifying what args to pass to run tests without a snapshot build.
  • Loading branch information
benwtrent authored Dec 7, 2020
1 parent d4d56cb commit 5859c4d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions TESTING.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,13 @@ Pass arbitrary jvm arguments.
./gradlew test -Dtests.jvm.argline="-Djava.security.debug=access,failure"
------------------------------

Pass build arguments.

------------------------------
# Run tests against a release build. License key must be provided, but usually can be anything.
./gradlew test -Dbuild.snapshot=false -Dlicense.key="x-pack/license-tools/src/test/resources/public.key"
------------------------------

== Running verification tasks

To run all verification tasks, including static checks, unit tests, and integration tests:
Expand Down

0 comments on commit 5859c4d

Please sign in to comment.