Browse Source

Generate both an xml and html report in the 2hourly reports (bamboo uses the xml one)


git-svn-id: http://svn.dmdirc.com/trunk@3934 00569f92-eb28-0410-84fd-f71c24880f
tags/0.6
Shane Mc Cormack 16 years ago
parent
commit
675aa1ffcb
2 changed files with 9 additions and 10 deletions
  1. 2
    2
      doreports.xml
  2. 7
    8
      junitreport.xml

+ 2
- 2
doreports.xml View File

@@ -3,8 +3,8 @@
3 3
     <description>Builds, tests, and runs the project DMDirc.</description>
4 4
     <import file="junitreport.xml" />
5 5
     <import file="style_build.xml" />
6
-		<target name="doallreports" depends="test-html,allreports,javadoc" />
7
-		<target name="domostreports" depends="test-html,mostreports,javadoc" />
6
+		<target name="doallreports" depends="test-both,allreports,javadoc" />
7
+		<target name="domostreports" depends="test-both,mostreports,javadoc" />
8 8
 </project>
9 9
 
10 10
 

+ 7
- 8
junitreport.xml View File

@@ -10,6 +10,7 @@
10 10
     <available property="clover.installed" classname="com.cenqua.clover.CloverInstr" />
11 11
 
12 12
     <target name="with.clover" depends="clean" if="clover.installed">
13
+        <clover-clean/>
13 14
         <clover-setup>
14 15
             <fileset dir="src/com/" includes="**/*.java" />
15 16
             <fileset dir="test/com/">
@@ -22,9 +23,8 @@
22 23
     <target name="clover.xml" if="clover.installed">
23 24
         <mkdir dir="reports/clover" />
24 25
         <clover-report>
25
-         <current outfile="reports/clover/clover.xml"/>
26
+            <current outfile="reports/clover/clover.xml"/>
26 27
         </clover-report>
27
-        <clover-clean/>
28 28
     </target>
29 29
 
30 30
     <target name="clover.html" if="clover.installed">
@@ -32,20 +32,19 @@
32 32
         <mkdir dir="reports/clover/history" />
33 33
         <clover-historypoint historydir="reports/clover/history" />
34 34
         <clover-report>
35
-         <current outfile="reports/clover">
36
-          <format type="html"/>
37
-         </current>
38
-         <historical outfile="reports/clover" historydir="reports/clover/history" />
35
+            <current outfile="reports/clover">
36
+                <format type="html"/>
37
+             </current>
38
+             <historical outfile="reports/clover" historydir="reports/clover/history" />
39 39
         </clover-report>
40
-        <clover-clean/>
41 40
     </target>
42 41
 
43 42
     <import file="build.xml"/>
44 43
     <property name="test.reports" value="./junitreports" />
45 44
 
46
-		
47 45
    <target name="test-html" depends="with.clover,compile-test,test,clover.html"/>
48 46
    <target name="test-xml" depends="with.clover,compile-test,test,clover.xml"/>
47
+   <target name="test-both" depends="test-html,test-xml"/>
49 48
    <target name="-post-test-run">
50 49
       <mkdir dir="${test.reports}" />
51 50
       <junitreport todir="${test.reports}">

Loading…
Cancel
Save