[Jython-checkins] jython: Add HTML reporting for JUnit XML test results as an ant command

jim.baker jython-checkins at python.org
Sat Jul 26 11:34:54 CEST 2014


http://hg.python.org/jython/rev/d22384ceddcd
changeset:   7351:d22384ceddcd
user:        Darjus Loktevic <darjus at gmail.com>
date:        Sat Jul 26 11:34:37 2014 +0200
summary:
  Add HTML reporting for JUnit XML test results as an ant command

files:
  ACKNOWLEDGMENTS |   1 +
  build.xml       |  12 ++++++++++++
  2 files changed, 13 insertions(+), 0 deletions(-)


diff --git a/ACKNOWLEDGMENTS b/ACKNOWLEDGMENTS
--- a/ACKNOWLEDGMENTS
+++ b/ACKNOWLEDGMENTS
@@ -112,6 +112,7 @@
     Peter Holloway
     Werner Mendizabal
     Henning Jacobs
+    Darjus Loktevic
 
 Local Variables:
 mode: indented-text
diff --git a/build.xml b/build.xml
--- a/build.xml
+++ b/build.xml
@@ -135,6 +135,8 @@
         <property name="dist.dir" value="${work.dir}/dist" />
         <property name="apidoc.dir" value="${dist.dir}/Doc/javadoc" />
         <property name="junit.reports" value="${dist.dir}/testreports" />
+        <property name="junit.htmlreports" value="${dist.dir}/test-html-reports" />
+
 
         <!-- classpaths -->
         <path id="main.classpath">
@@ -1042,6 +1044,16 @@
       </exec>
     </target>
 
+    <target name="regrtest-html-report" depends="init" description="generates HTML output out of regrtest JUnit XML">
+        <mkdir dir="${junit.htmlreports}/html"/>
+        <junitreport todir="${junit.htmlreports}">
+            <fileset dir="${junit.reports}">
+                <include name="TEST-*.xml"/>
+            </fileset>
+            <report format="frames" todir="${junit.htmlreports}/html"/>
+        </junitreport>
+    </target>
+
     <!-- run bugtests, create a config if necessary -->
     <target name="bugtest" depends="create-bugtest-config">
          <java classname="org.python.util.jython" fork="true" dir="${bugtests.dir}">

-- 
Repository URL: http://hg.python.org/jython


More information about the Jython-checkins mailing list