Skip to content

Commit

Permalink
Update Gradle Testing Docs (#28970)
Browse files Browse the repository at this point in the history
Attempting to run the REST tests, I noticed the testing instructions
  in the `TESTING.asciidoc` were outdated, so I fixed the paths.
  Steps I took to test:

  * Ran `./gradlew :distribution:packages:rpm:assemble` and make sure
  RPM is created in `./distribution/packages/rpm/build/distributions/`

  * Ran testing commands and verified the REST tests ran.
  • Loading branch information
pcsanwald authored and Paul Sanwald committed Mar 9, 2018
1 parent be8ae87 commit 01f6788
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions TESTING.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -270,14 +270,14 @@ The REST tests are run automatically when executing the "./gradlew check" comman
REST tests use the following command:

---------------------------------------------------------------------------
./gradlew :distribution:integ-test-zip:integTest \
./gradlew :distribution:archives:integ-test-zip:integTest \
-Dtests.class="org.elasticsearch.test.rest.*Yaml*IT"
---------------------------------------------------------------------------

A specific test case can be run with

---------------------------------------------------------------------------
./gradlew :distribution:integ-test-zip:integTest \
./gradlew :distribution:archives:integ-test-zip:integTest \
-Dtests.class="org.elasticsearch.test.rest.*Yaml*IT" \
-Dtests.method="test {p0=cat.shards/10_basic/Help}"
---------------------------------------------------------------------------
Expand Down Expand Up @@ -407,7 +407,7 @@ destructive. When working with a single package it's generally faster to run its
tests in a tighter loop than Gradle provides. In one window:

--------------------------------
./gradlew :distribution:rpm:assemble
./gradlew :distribution:packages:rpm:assemble
--------------------------------

and in another window:
Expand Down

0 comments on commit 01f6788

Please sign in to comment.