From 69f76de01e9ef0d61cd583501ea2a256af4e8e40 Mon Sep 17 00:00:00 2001 From: dion Date: Fri, 30 Jan 2004 04:57:40 +0000 Subject: [PATCH] Apply MPJUNITREPORT-3 git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114644 13f79535-47bb-0310-9956-ffa450edef68 --- junit-report/project.xml | 2 +- junit-report/src/plugin-resources/junit.jsl | 185 ++++++++++++++------ junit-report/xdocs/changes.xml | 6 + 3 files changed, 137 insertions(+), 56 deletions(-) diff --git a/junit-report/project.xml b/junit-report/project.xml index c423293f..5627ac96 100644 --- a/junit-report/project.xml +++ b/junit-report/project.xml @@ -5,7 +5,7 @@ 3 maven-junit-report-plugin Maven JUnit Report Plug-in - 1.4 + 1.5-SNAPSHOT Reports from JUnit tests http://maven.apache.org/reference/plugins/junit-report/ diff --git a/junit-report/src/plugin-resources/junit.jsl b/junit-report/src/plugin-resources/junit.jsl index fe0bcd93..207ce928 100644 --- a/junit-report/src/plugin-resources/junit.jsl +++ b/junit-report/src/plugin-resources/junit.jsl @@ -11,24 +11,14 @@ xmlns:doc="doc" trim="false"> - - - - - - - - +

- [ - summary] - [ - package list] - [ - test cases] + [summary] + [package list] + [test cases]

@@ -55,7 +45,7 @@ - ${htmlescape.getText(current.attribute('message').value)} +${current.attributeValue('message')} @@ -63,6 +53,22 @@ + + + + + + Failure + + + Error + + + Success + + + +
@@ -80,14 +86,16 @@ - - - - - - - - +
TestsErrorsFailuresSuccess rateTime(s)
+ + + + + + + + +
TestsErrorsFailuresSuccess rateTime(s)
@@ -116,10 +124,12 @@
- - - - +
PackageTestsErrorsFailuresSuccess RateTime
+ + + + + @@ -162,16 +172,33 @@ -
PackageTestsErrorsFailuresSuccess RateTime
- - - +
ClassTestsErrorsFailuresSuccess RateTime
+ + + + + + + @@ -204,14 +231,7 @@ -
ClassTestsErrorsFailuresSuccess RateTime
+ + + + + + + + + + + + + ${test.attribute('name').value}
- - - ## test can even not be started at all (failure to load the class) - ## so report the error directly - ## +
@@ -228,41 +248,43 @@ + - + + + - + - - - - - - - - - + + + + + + + - - @@ -273,6 +295,59 @@ + + + + +
+ + + + + + + + + + +
${testcase.attribute("name").value} - Failure Error Success - - ${testcase.attribute("name").value} + + + +
+
+
+ + + + + + + + + + + + + + +
+ + + + + + + + + ${testname}
+ + + +${stringTool.splitStringAtLastDelim(stringTool.splitStringAtLastDelim(failure.text, 'at org.apache.commons.jelly.tags.ant.AntTag.doTag').get(0), +'at sun.reflect.NativeMethodAccessorImpl.invoke0(').get(0)} + +
+ + + +
+ + diff --git a/junit-report/xdocs/changes.xml b/junit-report/xdocs/changes.xml index 44605ff5..b7d545bb 100644 --- a/junit-report/xdocs/changes.xml +++ b/junit-report/xdocs/changes.xml @@ -8,6 +8,12 @@ + + + Apply MPJUNITREPORT-3 + + + Added new goal junit-report:report which is is the same