svn commit: r826428 - /ofbiz/trunk/build.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r826428 - /ofbiz/trunk/build.xml

jleroux@apache.org
Author: jleroux
Date: Sun Oct 18 13:07:09 2009
New Revision: 826428

URL: http://svn.apache.org/viewvc?rev=826428&view=rev
Log:
A patch from Erwan de FERRIERES "generate a html report when running ant run-tests" (https://issues.apache.org/jira/browse/OFBIZ-3040) - OFBIZ-3040
When you run the "ant run-tests" command, junit is generating xml files, which are not always easily readable. There is a function with junitreport which allow to generate html reports from the xml ones. Then it is more user friendly to watch them.

Modified:
    ofbiz/trunk/build.xml

Modified: ofbiz/trunk/build.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/build.xml?rev=826428&r1=826427&r2=826428&view=diff
==============================================================================
--- ofbiz/trunk/build.xml (original)
+++ ofbiz/trunk/build.xml Sun Oct 18 13:07:09 2009
@@ -401,6 +401,13 @@
             <jvmarg value="${memory.maxpermsize.param}"/>
             <arg value="test"/>
         </java>
+        <mkdir dir="runtime/logs/test-results/html"/>
+        <junitreport todir="runtime/logs/test-results">
+            <fileset dir="runtime/logs/test-results/">
+                <include name="*.xml"/>
+            </fileset>
+            <report format="frames" todir="runtime/logs/test-results/html"/>
+        </junitreport>
     </target>
     <target name="_save-runtime-data">
         <delete file="runtime/data.zip"/>