You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tibor Digana (Jira)" <ji...@apache.org> on 2021/05/15 12:04:00 UTC

[jira] [Closed] (SUREFIRE-1910) Missleading error message when using -Dtest=....

     [ https://issues.apache.org/jira/browse/SUREFIRE-1910?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tibor Digana closed SUREFIRE-1910.
----------------------------------
    Resolution: Fixed

https://gitbox.apache.org/repos/asf?p=maven-surefire.git;a=commit;h=14bce33c7a350d85df8db49f00cf650556d1131a

> 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
>            Assignee: Tibor Digana
>            Priority: Major
>             Fix For: 3.0.0-M6
>
>
> 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)