-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TestLauncher does not discover tests in Junit5 @Nested class #29603
Comments
The issue is in the backlog of the relevant team and is prioritized by them. |
This is a corner-case of how test filters are handled on the command-line and it is an expected behaviour. When parsing a command-line test patterns, Gradle expects a test filter with the following format: In the reproducer, you can run select the test with its fully-qualified name
Or you can work around the issue by using the same wildcard approach that is used by the command-line:
|
Hi @donat, Confirmed that using
|
There's a typo in my previous message. The extra suffix should be
|
It works, thank you @donat. Maybe consider to add this trick to the javadoc of |
Current Behavior
When using TestLauncher to run tests with
@Nested
annotation class, Gradle failed to run them.Expected Behavior
TestLauncher should run tests for
@Nested
annotation class.Context (optional)
No response
Steps to Reproduce
Sample project to reproduce the issue: https://github.com/jdneo/gradle-test-launcher
Gradle version
8.4
Build scan URL (optional)
No response
Your Environment (optional)
No response
The text was updated successfully, but these errors were encountered: