Browse Source

Build now registers test failure, and halts *after*

all tests have been run.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271887 13f79535-47bb-0310-9956-ffa450edef68
master
Darrell DeBoer 23 years ago
parent
commit
69cff8fa82
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      proposal/myrmidon/build.xml

+ 6
- 2
proposal/myrmidon/build.xml View File

@@ -508,7 +508,7 @@ Legal:
</target>

<!-- Compiles and runs the unit tests -->
<target name="test" depends="dist-lite" if="junit.present" description="Runs the unit tests">
<target name="run-tests" depends="dist-lite" if="junit.present" description="Runs the unit tests">
<!-- Compile the unit tests -->
<mkdir dir="${test.classes}"/>
<javac srcdir="src/testcases"
@@ -567,7 +567,7 @@ Legal:
tofile="${test.classes}/META-INF/ant-descriptor.xml"/>

<!-- Run all the tests -->
<junit printsummary="on" fork="true">
<junit printsummary="on" fork="true" failureProperty="test.failed">
<formatter type="brief" usefile="false"/>
<classpath location="${build.classes}"/>
<classpath>
@@ -594,6 +594,10 @@ Legal:
</junit>
</target>

<target name="test" if="test.failed" depends="run-tests">
<fail> - One or more tests failed.</fail>
</target>

<!-- Creates the distribution -->
<target name="dist-lite"
depends="jars"


Loading…
Cancel
Save