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

Running multiple xml using suiteXmlFiles resulting in 0 test count

    XMLWordPrintableJSON

    Details

      Description

      POM setup:

      <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-surefire-plugin</artifactId>
          <version>3.0.0-M3</version>
          <configuration>
              <argLine>
                  -javaagent:"${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar"
                   -Dcucumber.options="--plugin io.qameta.allure.cucumber4jvm.AllureCucumber4Jvm"
              </argLine>
              <suiteXmlFiles>
                  <suiteXmlFile>${suiteXmlFile}</suiteXmlFile>
              </suiteXmlFiles>
              <systemPropertyVariables>
                  <config>${config}</config>
              </systemPropertyVariables>
          </configuration>
      </plugin>
      

      Run using command line and multiple xml will results in 0 test count

      mvn clean test -Dconfig="D:\configs\api\Automation - API - Staging.cfg" -DsuiteXmlFile="xml/regression/fintech/TestMain.xml","xml/regression/loyalty/TestMain.xml","xml/regression/payment/TestMain.xml"
      

      The results will display correct counter when I run single xml file.

        Attachments

        1. Zero Test Count.png
          575 kB
          Gavrila Budiwijaya

          Activity

            People

            • Assignee:
              tibordigana Tibor Digana
              Reporter:
              marvelfrozen Gavrila Budiwijaya
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: