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

behavior changes about failIfNoTests ?

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0.0-M6
    • None
    • Maven Surefire Plugin
    • None

    Description

      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 :

      mvn  surefire:test '-Dtest=!org.eclipse.leshan.integration.tests.**' -DfailIfNoTests=false -Dskip.yarn 
      

      All was good.

      And now with same command line with 3.0.0-M6, I get :

      [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]

      Using -Dsurefire.failIfNoSpecifiedTests=false did the job.

      But I share this just in case this is an unexpected regression. 🤷

      Attachments

        Activity

          People

            Unassigned Unassigned
            sbernard Simon
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: