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

   ## What changes were proposed in this pull request?
   
   > `failIfNoSpecifiedTests`: Set this to `true` to cause a failure if none of 
the tests specified in `-Dtest=...` are run. Defaults to `true`.
   
   Since Ratis is a multi-module project, currently we cannot run specific 
test(s) by setting `-Dtest`.
   
   ```
   $ mvn clean test -Dtest='TestNettyDataStreamChainTopologyWithGrpcCluster'
   ...
   [INFO] --- maven-surefire-plugin:3.0.0:test (default-test) @ ratis-docs ---
   [INFO] 
------------------------------------------------------------------------
   [INFO] Reactor Summary for Apache Ratis 3.1.0-SNAPSHOT:
   [INFO] 
   [INFO] Apache Ratis ....................................... SUCCESS [  0.521 
s]
   [INFO] Apache Ratis Documentation ......................... FAILURE [  0.160 
s]
   ...
   [INFO] BUILD FAILURE
   ...
   [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:3.0.0:test (default-test) on 
project ratis-docs: No tests matching pattern 
"TestNettyDataStreamChainTopologyWithGrpcCluster" were executed! (Set 
-Dsurefire.failIfNoSpecifiedTests=false to ignore this error.) -> [Help 1]
   ```
   
   The default value of `failIfNoSpecifiedTests` was changed in SUREFIRE-1910, 
released in 3.0.0-M6.  RATIS-1820 upgraded from 3.0.0-M1 to 3.0.0.
   
   https://issues.apache.org/jira/browse/RATIS-1952
   
   ## How was this patch tested?
   
   ```
   $ mvn clean test -Dtest='TestNettyDataStreamChainTopologyWithGrpcCluster'
   ...
   [INFO] --- maven-surefire-plugin:3.0.0:test (default-test) @ ratis-test ---
   [INFO] Using auto detected provider 
org.apache.maven.surefire.junit4.JUnit4Provider
   [INFO] 
   [INFO] -------------------------------------------------------
   [INFO]  T E S T S
   [INFO] -------------------------------------------------------
   [INFO] Running 
org.apache.ratis.datastream.TestNettyDataStreamChainTopologyWithGrpcCluster
   [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
25.434 s - in 
org.apache.ratis.datastream.TestNettyDataStreamChainTopologyWithGrpcCluster
   [INFO] 
   [INFO] Results:
   [INFO] 
   [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0
   ...
   [INFO] BUILD SUCCESS
   ```
   
   CI:
   https://github.com/adoroszlai/ratis/actions/runs/7072544665


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