you should be able to run individual tests by specifying them through their path in the yaml via e.g.
./gradlew ':x-pack:qa:rolling-upgrade:v6.8.5#twoThirdsUpgradedTest' --tests "org.elasticsearch.upgrades.UpgradeClusterClientYamlTestSuiteIT.test {p0=mixed_cluster/30_ml_jobs_crud/Test get old cluster categorization job}"
I would point out that to my knowledge this may not be a stable API across ES versions, which is also why it's not documented fully I think. If you absolutely must run a single test though it should work.
If it doesn't (or it's too tricky to find out the correct path for say a docs test), one hack/work-around to finding out the path would be to just change the test assertion in the test you want to run slightly so that it fails => then you can get the command to run that test from the reproduce line printed for the failing test.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.