OKAN-SOFTWARE commented on code in PR #3567:
URL: https://github.com/apache/maven-surefire/pull/3567#discussion_r4532843736


##########
maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java:
##########
@@ -1247,6 +1247,11 @@ private void executeAfterPreconditionsChecked(@Nonnull 
DefaultScanResult scanRes
 
         TestClassPath testClasspath = generateTestClasspath();
         List<ProviderInfo> providers = createProviders(testClasspath);
+        if (providers.isEmpty()) {

Review Comment:
   Yes. When the test scan is empty, Surefire returns before reaching the 
provider check, so this warning is skipped.
   
   I added an integration test using `-Dtest=DoesNotExist` with 
`surefire.failIfNoSpecifiedTests=false` to verify this behavior. Both 
integration tests pass.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to