-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
UX: improve error message when test is filtered out #16029
Comments
The experience is similar when using |
Yes, this is the very same issue: when you run a test from IDEA like I did, it actually uses |
This issue has been automatically marked as stale because it has not had recent activity. Given the limited bandwidth of the team, it will be automatically closed if no further activity occurs. If you're interested in how we try to keep the backlog in a healthy state, please read our blog post on how we refine our backlog. If you feel this is something you could contribute, please have a look at our Contributor Guide. Thank you for your contribution. |
ping |
Actually, I believe the "No tests found for given includes" message is fine. It all boils down to who you think "found" refers to: To the test engine, or to Gradle. To me it refers to Gradle, as the message comes from Gradle. So Gradle did not "find" the test (because it was filtered), but the test engine did find it. Anyway, what I believe is more confusing than that is that the message talks about "includes" although only an exclude was defined. Maybe better use a wording like "No tests to execute remaining after filtering". |
Can confirm :( |
Context
This caused me a headache which has hopefully been mitigated thanks to the help of @rieske . Basically, if a test task is configured to filter out tests:
and that you run via CLI, or in my case, via the IDE, this test task, you get this error message:
which is not quite correct: tests were found, but they were filtered out. So it's not a bug in the engine not finding the test, it's actually that I was calling the wrong task.
Suggestion:
The text was updated successfully, but these errors were encountered: