Guys,

I've just committed the patch for HARMONY-1710 "[classlib][testing]
need a way to point the test results report directory" it introduces a
new build property: report.dir.
Using this property you can specify directory where to put test
results. This can used to keep test results from different versions
and in many other cases.

Thanks to Vladimir Ivanov for this suggestion.

SY, Alexey

2006/12/12, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
Author: apetrenko
Date: Tue Dec 12 12:34:38 2006
New Revision: 486301

URL: http://svn.apache.org/viewvc?view=rev&rev=486301
Log:
Patch for HARMONY-1710 "[classlib][testing] need a way to point the test resuls 
report directory"

Modified:
   harmony/enhanced/classlib/trunk/make/build-test.xml

Modified: harmony/enhanced/classlib/trunk/make/build-test.xml
URL: 
http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/make/build-test.xml?view=diff&rev=486301&r1=486300&r2=486301
==============================================================================
--- harmony/enhanced/classlib/trunk/make/build-test.xml (original)
+++ harmony/enhanced/classlib/trunk/make/build-test.xml Tue Dec 12 12:34:38 2006
@@ -54,30 +54,34 @@

    <target name="gen-report" depends="full-report,short-report" />

+    <property name="report.dir" value="${tests.output}/html"/>
+
    <target name="full-report" unless="short.report" >
+        <delete dir="${report.dir}" />
        <junitreport todir="${tests.output}">
            <fileset dir="${tests.output}">
                <include name="TEST*-*.xml"/>
            </fileset>
-            <report format="frames" todir="${tests.output}/html"/>
+            <report format="frames" todir="${report.dir}"/>
        </junitreport>

        <!-- use this property just to get the slashes to display right in the 
echo -->
-        <property name="display-location" 
location="${tests.output}/html/index.html"/>
+        <property name="display-location" location="${report.dir}/index.html"/>
        <echo message="The test report is in ${display-location}"/>
    </target>

    <target name="short-report" if="short.report" >
+        <delete dir="${report.dir}" />
        <junitreport todir="${tests.output}">
            <fileset dir="${tests.output}" includes="TEST*-*.xml">
                <containsregexp expression='(errors|failures)="[1-9]' />
                <exclude name="TESTS-TestSuites.xml" />
            </fileset>
-            <report format="frames" todir="${tests.output}/html"/>
+            <report format="frames" todir="${report.dir}"/>
        </junitreport>

        <!-- use this property just to get the slashes to display right in the 
echo -->
-        <property name="display-location" 
location="${tests.output}/html/index.html"/>
+        <property name="display-location" location="${report.dir}/index.html"/>
        <echo message="The short test report is in ${display-location}"/>
    </target>




Reply via email to