aboutsummaryrefslogtreecommitdiffstats
path: root/tests/junit-runner/CommandLine.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/junit-runner/CommandLine.java')
-rw-r--r--tests/junit-runner/CommandLine.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/junit-runner/CommandLine.java b/tests/junit-runner/CommandLine.java
index ad7dc7e..1807c65 100644
--- a/tests/junit-runner/CommandLine.java
+++ b/tests/junit-runner/CommandLine.java
@@ -7,6 +7,7 @@
* http://www.eclipse.org/legal/cpl-v10.html
*/
+import java.io.File;
import java.util.ArrayList;
import java.util.List;
@@ -41,6 +42,8 @@ public class CommandLine extends JUnitCore {
system.out().println("ERROR: Could not find class: " + each);
}
}
+ RunListener jXmlOutput = new JunitLikeXmlOutputListener(system, new File("tests-output.xml"));
+ addListener(jXmlOutput);
RunListener listener = new LessVerboseTextListener(system);
addListener(listener);
Result result = run(classes.toArray(new Class[0]));