Simon created SUREFIRE-2110:
-------------------------------
Summary: behavior changes about failIfNoTests ?
Key: SUREFIRE-2110
URL: https://issues.apache.org/jira/browse/SUREFIRE-2110
Project: Maven Surefire
Issue Type: Bug
Components: Maven Surefire Plugin
Affects Versions: 3.0.0-M6
Reporter: Simon
This is maybe the expected behavior but I just update the Maven Surefire Plugin
from 3.0.0-M5 to 3.0.0-M6 and find this behavior change.
With 3.0.0-M5 when I was using in my project :
{code:java}
mvn surefire:test '-Dtest=!org.eclipse.leshan.integration.tests.**'
-DfailIfNoTests=false -Dskip.yarn
{code}
All was good.
And now with same command line with 3.0.0-M6, I get :
{code:java}
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M6:test (default-cli) on
project leshan-integration-tests: No tests matching pattern
"!org.eclipse.leshan.integration.tests.**" were executed! (Set
-Dsurefire.failIfNoSpecifiedTests=false to ignore this error.) -> [Help 1]{code}
Using -Dsurefire.failIfNoSpecifiedTests=false did the job.
But I share this just in case this is an unexpected regression. 🤷
--
This message was sent by Atlassian Jira
(v8.20.10#820010)