adoroszlai opened a new pull request, #5653:
URL: https://github.com/apache/ozone/pull/5653

   ## What changes were proposed in this pull request?
   
   After HDDS-9741 upgraded Surefire from 3.0.0-M5 to 3.2.2, trying to run 
specific tests by setting `-Dtest` in the CLI fails with `No tests matching 
pattern "..." were executed`.
   
   Example:
   
   ```
   $ mvn -am -pl :hdds-server-scm -Dtest='TestBlockManager' clean test
   ...
   [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:3.2.2:test (default-test) on 
project hdds-annotation-processing: No tests matching pattern 
"TestBlockManager" were executed! (Set -Dsurefire.failIfNoSpecifiedTests=false 
to ignore this error.) 
   ```
   
   The problem is that the default value of 
[`failIfNoSpecifiedTests`](https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#failIfNoSpecifiedTests)
 was changed to `true` in 3.0.0-M6 by SUREFIRE-1910.
   
   https://issues.apache.org/jira/browse/HDDS-9757
   
   ## How was this patch tested?
   
   ```
   $ mvn -am -pl :hdds-server-scm -Dtest='TestBlockManager' clean test
   ...
   [INFO] Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
3.494 s -- in org.apache.hadoop.hdds.scm.block.TestBlockManager
   ```


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to