diff options
author | Jiri Vanek <[email protected]> | 2011-05-10 11:58:19 +0200 |
---|---|---|
committer | Jiri Vanek <[email protected]> | 2011-05-10 11:58:19 +0200 |
commit | 758132c5c84f359ddd824573ad2ec5944d51559e (patch) | |
tree | 6bc95cc16020d478c5d62452aa617ed64b34ad13 /tests/junit-runner/CommandLine.java | |
parent | a20b6152e9037c3f4e6f211d946035de7c803648 (diff) |
added posibility for junit to export reports to xml, addes set of styles for easy navigation inside tests-output file (transformed to html)
Diffstat (limited to 'tests/junit-runner/CommandLine.java')
-rw-r--r-- | tests/junit-runner/CommandLine.java | 3 |
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])); |