Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-1910

Missleading error message when using -Dtest=....

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.22.2
    • 3.0.0-M6
    • None
    • None

    Description

      I run

       mvn clean verify  -Dtest=abc
      

      then I get the following error message:

      No tests were executed!  (Set -DfailIfNoTests=false to ignore this error.) 
      

      This is missleading as failIfNoTests is false by default. Actually I have to set surefire.failIfNoSpecifiedTests=false

      Attachments

        Issue Links

          Activity

            People

              tibordigana Tibor Digana
              laeubi Christoph Läubrich
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: