> MAybe someone can help me with this?
> I惴 trying to use the reportng reporter to generate a custom report
> but i don愒 know how to set it up.
> I惴 using :
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-surefire-plugin</artifactId>
> <configuration>
> <suiteXmlFiles>
> <suiteXmlFile>testng.xml</suiteXmlFile>
> </suiteXmlFiles>
> </configuration>
> </plugin>
>
> in my pom.xml .
> Has anyone a hint how to invoke the reportng listener to generate the
> report?
> Do i have to add the custom listener only in my testng.xml file or do
> i have to add it to the surefire plugin section in my pom.xml?
Adding the custom listener in your testng.xml file is a good idea. You
can also add it to your Surefire Plugin configuration; I've filed a bug to
add more documentation about this. In the meantime, here's the basic
idea:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<properties>
<property>
<name>listener</name>
<value>listenReport.ResultListener,listenReport.SuiteListener</value>
</property>
<property>
<name>reporter</name>
<value>listenReport.Reporter</value>
</property>
</properties>
</configuration>
</plugin>
and here's a working example:
-Dan