Browse Source

minor junit related mods

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@447538 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 19 years ago
parent
commit
dff2d5d7fd
1 changed files with 5 additions and 11 deletions
  1. +5
    -11
      build.xml

+ 5
- 11
build.xml View File

@@ -1542,8 +1542,9 @@
Run testcase Run testcase
=================================================================== ===================================================================
--> -->
<target name="test" depends="test-halt" description="--> run JUnit tests"/>

<target name="test" depends="test-report" description="--> run JUnit tests">
<fail if="tests.failed">Unit tests failed see ${build.tests.reports}</fail>
</target>


<target name="test-init" depends="probe-offline"> <target name="test-init" depends="probe-offline">
<mkdir dir="${build.tests.xml}"/> <mkdir dir="${build.tests.xml}"/>
@@ -1586,20 +1587,13 @@
</junitreport> </junitreport>
</target> </target>


<target name="test-halt" depends="test-report" >
<fail if="tests.failed">Unit tests failed see ${build.tests.reports}</fail>
</target>


<target name="run-tests" depends="dump-info,compile-tests,probe-offline,test-init" <target name="run-tests" depends="dump-info,compile-tests,probe-offline,test-init"
if="junit.present" unless="testcase"> if="junit.present" unless="testcase">




<property name="includetests" value="**/*Test*" /> <property name="includetests" value="**/*Test*" />
<property name="excludetests" value="" /> <property name="excludetests" value="" />


<test-junit >
<test-junit>
<formatter type="brief" usefile="false"/> <formatter type="brief" usefile="false"/>


<batchtest todir="${build.tests.xml}"> <batchtest todir="${build.tests.xml}">
@@ -1751,7 +1745,7 @@
<target name="run-single-test-only" if="testcase" <target name="run-single-test-only" if="testcase"
description="--> runs the single unit test defined in the testcase property" description="--> runs the single unit test defined in the testcase property"
depends="test-init"> depends="test-init">
<test-junit >
<test-junit>
<formatter type="plain" usefile="false"/> <formatter type="plain" usefile="false"/>
<test name="${testcase}" todir="${build.tests.xml}"/> <test name="${testcase}" todir="${build.tests.xml}"/>
</test-junit> </test-junit>


Loading…
Cancel
Save