[
https://issues.apache.org/jira/browse/SUREFIRE-1910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17333239#comment-17333239
]
Christoph Läubrich commented on SUREFIRE-1910:
----------------------------------------------
btw this should be reproducible with any maven project, simply create for
example an empty one with no test -> mvn test -> succeds (because failIfNoTests
defaults to false), mvn test -Dabc -> fails with the error.
> Missleading error message when using -Dtest=....
> ------------------------------------------------
>
> Key: SUREFIRE-1910
> URL: https://issues.apache.org/jira/browse/SUREFIRE-1910
> Project: Maven Surefire
> Issue Type: Bug
> Affects Versions: 2.22.2
> Reporter: Christoph Läubrich
> Priority: Major
>
> I run
> {noformat}
> mvn clean verify -Dtest=abc
> {noformat}
> then I get the following error message:
> {noformat}
> No tests were executed! (Set -DfailIfNoTests=false to ignore this error.)
> {noformat}
> This is missleading as failIfNoTests is false by default. Actually I have to
> set surefire.failIfNoSpecifiedTests=false
--
This message was sent by Atlassian Jira
(v8.3.4#803005)