Cleanup testng listener configuration.
- Add StingTextReporter, which provides a text dump of the errors to the console. Had to create our own reporter (inheriting from the standard TestNG TextReporter) to work around a configuration issue with the TextReporter. In an ideal world, I'd report this on the TestNG mailing list and help them resolve the issue, but this solution is relatively robust at the moment and life is too short. - Added back the failed test listener, which generates the testng-failed.xml file. git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@4686 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
b677080858
commit
8ff4e4cb25
13
build.xml
13
build.xml
|
|
@ -490,17 +490,18 @@
|
|||
<testng outputDir="${report}/@{testtype}"
|
||||
haltOnFailure="false" failureProperty="test.failure"
|
||||
verbose="2"
|
||||
workingDir="${basedir}"
|
||||
useDefaultListeners="false" listeners="org.testng.reporters.XMLReporter,org.testng.reporters.JUnitXMLReporter">
|
||||
workingDir="${basedir}"
|
||||
useDefaultListeners="false"
|
||||
listeners="org.testng.reporters.FailedReporter,org.testng.reporters.JUnitXMLReporter,org.broadinstitute.sting.StingTextReporter">
|
||||
<jvmarg value="-Djava.awt.headless=true"/>
|
||||
<!--
|
||||
<jvmarg value="-Xdebug"/>
|
||||
<jvmarg value="-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"/>
|
||||
<jvmarg value="-Xdebug"/>
|
||||
<jvmarg value="-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"/>
|
||||
-->
|
||||
<classpath>
|
||||
<path refid="external.dependencies" />
|
||||
<pathelement location="${java.classes}" />
|
||||
<pathelement location="${queue.classes}" />
|
||||
<pathelement location="${java.classes}" />
|
||||
<pathelement location="${queue.classes}" />
|
||||
<pathelement location="${java.test.classes}" />
|
||||
<pathelement location="${queue.test.classes}" />
|
||||
</classpath>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,16 @@
|
|||
package org.broadinstitute.sting;
|
||||
|
||||
import org.testng.reporters.TextReporter;
|
||||
|
||||
/**
|
||||
* HACK: Create a variant of the TestNG TextReporter that can be run with no
|
||||
* arguments, and can therefore be added to the TestNG listener list.
|
||||
*
|
||||
* @author hanna
|
||||
* @version 0.1
|
||||
*/
|
||||
public class StingTextReporter extends TextReporter {
|
||||
public StingTextReporter() {
|
||||
super("Ant suite",2);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue