But if I try to select only that test with ./gradlew test --tests cucumber.junit5.gradle.SampleSteps (or with other ways to select the test), I get this error:
Execution failed for task ':test'.
> No tests found for given includes: [cucumber.junit5.gradle.SampleSteps](--tests filter)
I’ve tried adding includeEngines("cucumber") to useJUnitPlatform but it didn’t make any difference.
Is there some configuration to allow selecting a single test when it’s using a different engine?
What went wrong:
Execution failed for task ‘:test’.
No tests found for given includes: [Tests\tttt\solveTests.class](include rules) *
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use ‘–warning-mode all’ to show the individual deprecation warnings.
See Command-Line Interface
BUILD FAILED in 528ms
4 actionable tasks: 3 executed, 1 up-to-date