mpkorstanje commented on issue #3548:
URL: 
https://github.com/apache/maven-surefire/issues/3548#issuecomment-6416272937

   Moreover, Surefire also doesn't warn that no tests could be found matching 
the pattern as it would when trying to select a non-existent inner class:
   
   ```bash
   mvn test -D'test=CalculatorParameterizedClassTests$NoSuchClass#regularTest'
   ``
   
   ```
   [INFO] --- surefire:3.6.1:test (default-test) @ junit-jupiter-starter-maven 
---
   [INFO] 
------------------------------------------------------------------------
   [INFO] BUILD FAILURE
   [INFO] 
------------------------------------------------------------------------
   [INFO] Total time:  0.416 s
   [INFO] Finished at: 2026-10-26T13:41:38+01:00
   [INFO] 
------------------------------------------------------------------------
   [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:3.6.1:test (default-test) on 
project junit-jupiter-starter-maven: No tests matching pattern 
"CalculatorParameterizedClassTests$NoSuchClass#regularTest" were executed! (Set 
-Dsurefire.failIfNoSpecifiedTests=false to ignore this error.) -> [Help 1]
   ```
   


-- 
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