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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment