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

The TestNG command line option '-testrunfactory' should be supported.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.19
    • Component/s: TestNG support
    • Labels:
      None
    • Flags:
      Patch

      Description

      Version 5.9 of TestNG added the -testrunfactory command line option for registering a custom test runner factory. The Maven Surefire Plugin should support this option.

      Ideally, one should be able to specify the option in the Surefire configuration of their project's pom.xml file.

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <properties>
            <property>
              <name>testrunfactory</name>
              <value>org.example.CustomTestRunnerFactory</value>
            </property>
          </properties>
        </configuration>
      </plugin>
      

        Attachments

          Activity

            People

            • Assignee:
              tibordigana Tibor Digana
              Reporter:
              orien Orien Madgwick
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: