diff --git a/platform/testRunner/src/com/intellij/execution/testframework/export/ExportTestResultsAction.java b/platform/testRunner/src/com/intellij/execution/testframework/export/ExportTestResultsAction.java index 7e46e475477d..7c7f932a8785 100644 --- a/platform/testRunner/src/com/intellij/execution/testframework/export/ExportTestResultsAction.java +++ b/platform/testRunner/src/com/intellij/execution/testframework/export/ExportTestResultsAction.java @@ -45,7 +45,6 @@ import com.intellij.openapi.vfs.VfsUtil; import com.intellij.openapi.vfs.VirtualFile; import com.intellij.openapi.wm.ToolWindowManager; import com.intellij.util.io.URLUtil; -import org.apache.tools.ant.taskdefs.optional.junit.XMLConstants; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import org.xml.sax.SAXException; @@ -258,7 +257,7 @@ public class ExportTestResultsAction extends DumbAwareAction { else { Source xslSource; if (config.getExportFormat() == ExportTestResultsConfiguration.ExportFormat.BundledTemplate) { - URL bundledXsltUrl = XMLConstants.class.getResource("/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-noframes.xsl"); + URL bundledXsltUrl = getClass().getResource("junit-noframes.xsl"); xslSource = new StreamSource(URLUtil.openStream(bundledXsltUrl)); } else { diff --git a/platform/testRunner/src/com/intellij/execution/testframework/export/TestResultsXmlFormatter.java b/platform/testRunner/src/com/intellij/execution/testframework/export/TestResultsXmlFormatter.java index 889584fa9745..cb7863226a23 100644 --- a/platform/testRunner/src/com/intellij/execution/testframework/export/TestResultsXmlFormatter.java +++ b/platform/testRunner/src/com/intellij/execution/testframework/export/TestResultsXmlFormatter.java @@ -24,7 +24,6 @@ import com.intellij.execution.ui.ConsoleViewContentType; import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.util.Ref; import com.intellij.util.PairProcessor; -import org.apache.tools.ant.taskdefs.optional.junit.XMLConstants; import org.xml.sax.ContentHandler; import org.xml.sax.SAXException; import org.xml.sax.helpers.AttributesImpl; @@ -34,7 +33,18 @@ import java.util.Map; // this class generates resulting XML compatible to that of XMLJUnitResultFormatter -public class TestResultsXmlFormatter implements XMLConstants { +public class TestResultsXmlFormatter { + + // see org.apache.tools.ant.taskdefs.optional.junit.XmlConstants + private static final String TESTSUITES = "testsuites"; + private static final String TESTSUITE = "testsuite"; + private static final String TESTCASE = "testcase"; + private static final String FAILURE = "failure"; + private static final String ATTR_NAME = "name"; + private static final String ATTR_FAILURES = "failures"; + private static final String ATTR_TESTS = "tests"; + + private static final Logger LOG = Logger.getInstance(TestResultsXmlFormatter.class.getName()); private final RuntimeConfiguration myRuntimeConfiguration; diff --git a/platform/testRunner/src/com/intellij/execution/testframework/export/junit-noframes.xsl b/platform/testRunner/src/com/intellij/execution/testframework/export/junit-noframes.xsl new file mode 100644 index 000000000000..f0ab96416c70 --- /dev/null +++ b/platform/testRunner/src/com/intellij/execution/testframework/export/junit-noframes.xsl @@ -0,0 +1,467 @@ + + + + + + +Unit Test Results. + + + + + + <xsl:value-of select="$TITLE"/> + + + + + + + + + + +
+ + + +
+ + + +
+ + + + + + +
+ + + + + + + + +

Packages

+ Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers. + + + + + + + + + + + + + + + + + Failure + Error + + + + + + + + + + + +
+ + + +
+
+ + + + + + + + + + + + +

Package

+ + + + + + +
+ Back to top +

+

+ + + + + + + + +

TestCase

+ + + + + + + + + + +
+ +

+ + Back to top + + + + +

Summary

+ + + + + + + + + + + + + + + + + Failure + Error + + + + + + + + + +
TestsFailuresErrorsSuccess rateTime
+ + + + + + + +
+ + + + +
+ Note: failures are anticipated and checked for with assertions while errors are unanticipated. +
+
+ + + + cur = TestCases['.'] = new Array(); + + + cur[''] = ''; + + + + + +

+ + + + + +
Designed for use with JUnit and Ant.
+
+
+ + + + Name + Tests + Errors + Failures + Time(s) + + + + + + + Name + Tests + Errors + Failures + Time(s) + Time Stamp + Host + + + + + + + Name + Status + Type + Time(s) + + + + + + + + + + + Failure + Error + + + + + + + + + + + + + + + + + + + + + + + Error + + + + + + Failure + + + + Error + + + + Success + + + + + + + + + + + + + + + + + + + + + + + + N/A + + + + + + +

+ + + +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/platform/testRunner/testRunner.iml b/platform/testRunner/testRunner.iml index 01430add824a..5c2b923541d0 100644 --- a/platform/testRunner/testRunner.iml +++ b/platform/testRunner/testRunner.iml @@ -11,7 +11,6 @@ -