Browse Source

a little more work

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

+ 13
- 15
build.xml View File

@@ -1549,24 +1549,22 @@
===================================================================
-->

<target name="check-failed">
<condition property="tests.failed">
<or>
<isset property="junit.failed" />
<isset property="antunit.failed" />
</or>
</condition>
<target name="tests-failed">
<fail>Unit tests failed; see ${build.junit.reports} / ${antunit.reports}
<condition>
<or>
<isset property="junit.failed" />
<isset property="antunit.failed" />
</or>
</condition>
</fail>
</target>

<target name="test" depends="junit-report,antunit-report,check-failed"
description="--> run unit tests / reports">
<fail if="tests.failed">Unit tests failed; see ${build.junit.reports} / ${antunit.reports}</fail>
</target>
<target name="test" depends="junit-report,antunit-report,tests-failed"
description="--> run unit tests and reports" />

<target name="run-tests" depends="junit-tests,antunit-tests,check-failed"
description="--> run unit tests">
<fail if="tests.failed">Unit tests failed; see ${build.junit.reports} / ${antunit.reports}</fail>
</target>
<target name="run-tests" depends="junit-tests,antunit-tests,tests-failed"
description="--> run unit tests without reports" />

<target name="test-init" depends="probe-offline,check_for_optional_packages">
<macrodef name="test-junit">


Loading…
Cancel
Save