From 8ff4e4cb25aa8d2d0b2e214ca6d4cfada210c54b Mon Sep 17 00:00:00 2001 From: hanna Date: Mon, 15 Nov 2010 23:43:14 +0000 Subject: [PATCH] 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 --- build.xml | 13 +++++++------ .../broadinstitute/sting/StingTextReporter.java | 16 ++++++++++++++++ 2 files changed, 23 insertions(+), 6 deletions(-) create mode 100644 java/test/org/broadinstitute/sting/StingTextReporter.java diff --git a/build.xml b/build.xml index 1284fc17f..03cd0a33e 100644 --- a/build.xml +++ b/build.xml @@ -490,17 +490,18 @@ + workingDir="${basedir}" + useDefaultListeners="false" + listeners="org.testng.reporters.FailedReporter,org.testng.reporters.JUnitXMLReporter,org.broadinstitute.sting.StingTextReporter"> - - + + diff --git a/java/test/org/broadinstitute/sting/StingTextReporter.java b/java/test/org/broadinstitute/sting/StingTextReporter.java new file mode 100644 index 000000000..786ffd7aa --- /dev/null +++ b/java/test/org/broadinstitute/sting/StingTextReporter.java @@ -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); + } +}