Skip to content

Commit

Permalink
Update TESTING.asciidoc (elastic#112832)
Browse files Browse the repository at this point in the history
Add a way to run tests with period in the name via wildcards
  • Loading branch information
smalyshev authored Sep 12, 2024
1 parent 44c9271 commit 6e9ef66
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions TESTING.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,15 @@ You can run a group of YAML test by using wildcards:
--tests "org.elasticsearch.test.rest.ClientYamlTestSuiteIT.test {yaml=index/*/*}"
---------------------------------------------------------------------------

or

---------------------------------------------------------------------------
./gradlew :rest-api-spec:yamlRestTest \
--tests org.elasticsearch.test.rest.ClientYamlTestSuiteIT -Dtests.method="test {yaml=cat.segments/10_basic/*}"
---------------------------------------------------------------------------

The latter method is preferable when the YAML suite name contains `.` (period).

Note that if the selected test via the `--tests` filter is not a valid test, i.e., the YAML test
runner is not able to parse and load it, you might get an error message indicating that the test
was not found. In such cases, running the whole suite without using the `--tests` could show more
Expand Down

0 comments on commit 6e9ef66

Please sign in to comment.