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

Does not overrides include/exclude using -Dtest property

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.12, 2.12.1, 2.12.2, 2.12.3, 2.12.4, 2.13, 2.14, 2.14.1, 2.15, 2.16, 2.17, 2.18, 2.18.1
    • Fix Version/s: None
    • Component/s: Maven Surefire Plugin
    • Labels:
      None

      Description

      Does not run test using -Dtest example:
      mvn verify -Dtest=**/*AppIT.java -DfailIfNoTests=false -Pe2e-test

      if enable in pom.xml <include>${test}</include> line so test would run.

      It seems that -Dtest property does not overrides <include>

      Works on 2.11 version.

      Attached pom.xml and sanbox example.

        Attachments

        1. sandbox.zip
          13 kB
          Arūnas Vasmanas
        2. pom.xml
          3 kB
          Arūnas Vasmanas

          Issue Links

            Activity

              People

              • Assignee:
                tibordigana Tibor Digana
                Reporter:
                arunas10 Arūnas Vasmanas
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: