Skip to content

Commit 6e9ef66

Browse files
authored
Update TESTING.asciidoc (#112832)
Add a way to run tests with period in the name via wildcards
1 parent 44c9271 commit 6e9ef66

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

TESTING.asciidoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,15 @@ You can run a group of YAML test by using wildcards:
472472
--tests "org.elasticsearch.test.rest.ClientYamlTestSuiteIT.test {yaml=index/*/*}"
473473
---------------------------------------------------------------------------
474474

475+
or
476+
477+
---------------------------------------------------------------------------
478+
./gradlew :rest-api-spec:yamlRestTest \
479+
--tests org.elasticsearch.test.rest.ClientYamlTestSuiteIT -Dtests.method="test {yaml=cat.segments/10_basic/*}"
480+
---------------------------------------------------------------------------
481+
482+
The latter method is preferable when the YAML suite name contains `.` (period).
483+
475484
Note that if the selected test via the `--tests` filter is not a valid test, i.e., the YAML test
476485
runner is not able to parse and load it, you might get an error message indicating that the test
477486
was not found. In such cases, running the whole suite without using the `--tests` could show more

0 commit comments

Comments
 (0)