aboutsummaryrefslogtreecommitdiff
path: root/org.jacoco.ant.test
diff options
context:
space:
mode:
authorMarc R. Hoffmann <hoffmann@mountainminds.com>2012-04-14 10:38:26 +0000
committerMarc R. Hoffmann <hoffmann@mountainminds.com>2012-04-14 10:38:26 +0000
commit5b5a483fe5e102b2591ce9eda737c7941d012023 (patch)
treecfb7246f49c2ef50203e8dffced2e46bf5810400 /org.jacoco.ant.test
parent64eed34c8ba531237c96315e5fa46a7f9d11cc57 (diff)
downloadjacoco-5b5a483fe5e102b2591ce9eda737c7941d012023.tar.gz
More test cases for Ant tasks.
Diffstat (limited to 'org.jacoco.ant.test')
-rw-r--r--org.jacoco.ant.test/src/org/jacoco/ant/AgentTaskTest.xml12
-rw-r--r--org.jacoco.ant.test/src/org/jacoco/ant/ReportTaskTest.xml9
2 files changed, 21 insertions, 0 deletions
diff --git a/org.jacoco.ant.test/src/org/jacoco/ant/AgentTaskTest.xml b/org.jacoco.ant.test/src/org/jacoco/ant/AgentTaskTest.xml
index 5c3292b7..c6874e3a 100644
--- a/org.jacoco.ant.test/src/org/jacoco/ant/AgentTaskTest.xml
+++ b/org.jacoco.ant.test/src/org/jacoco/ant/AgentTaskTest.xml
@@ -44,5 +44,17 @@
<jacoco:agent/>
</au:expectfailure>
</target>
+
+ <target name="testCoverageAgentWithEmptyProperty">
+ <au:expectfailure expectedMessage="Property is mandatory">
+ <jacoco:agent property=""/>
+ </au:expectfailure>
+ </target>
+
+ <target name="testCoverageAgentReuseAgentJar">
+ <jacoco:agent property="agent1"/>
+ <jacoco:agent property="agent2"/>
+ <au:assertEquals expected="${agent1}" actual="${agent2}"/>
+ </target>
</project> \ No newline at end of file
diff --git a/org.jacoco.ant.test/src/org/jacoco/ant/ReportTaskTest.xml b/org.jacoco.ant.test/src/org/jacoco/ant/ReportTaskTest.xml
index 783eeaa4..f34101aa 100644
--- a/org.jacoco.ant.test/src/org/jacoco/ant/ReportTaskTest.xml
+++ b/org.jacoco.ant.test/src/org/jacoco/ant/ReportTaskTest.xml
@@ -49,6 +49,15 @@
</jacoco:report>
</au:expectfailure>
</target>
+
+ <target name="testReportWithExecutiondataFiles">
+ <jacoco:report>
+ <executiondata>
+ <fileset dir="${basedir}/data" includes="*.exec"/>
+ </executiondata>
+ <structure name="root"/>
+ </jacoco:report>
+ </target>
<target name="testReportInvalidExecutiondataFile">
<au:expectfailure expectedMessage="Unable to read execution data file doesnotexist.exec">