You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Andrew Robinson <an...@gmail.com> on 2008/01/07 18:04:26 UTC

Use a custom reporter with testng and surefire?

I have the following in my pom:

      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.4-SNAPSHOT</version>
        <configuration>
          <forkMode>once</forkMode>
          <parallel>false</parallel>
          <redirectTestOutputToFile>true</redirectTestOutputToFile>
          <workingDirectory>${project.build.directory}</workingDirectory>
          <includes>
            <include>**/*Test.java</include>
          </includes>
          <properties>
            <property>
              <name>listener</name>
              <value>testing.TestNGListener</value>
            </property>
            <property>
              <name>reporter</name>
              <value>testing.TestNGReporter</value>
            </property>

I am using TestNG 5.6

The listener is getting used, but the reporter is not. Is there some other
way of setting a custom reporter with surefire & TestNG?

Thanks,
Andrew