Browse Source

add junit-report-only and antunit-report-only for those (admittedly rare)

situations when you've just run tests without reports and change your mind
that you want reports after all.  :P


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

+ 6
- 2
build.xml View File

@@ -1678,7 +1678,9 @@ see ${build.junit.reports} / ${antunit.reports}
</condition>
</target>

<target name="junit-report" depends="junit-tests" if="run.junit.report">
<target name="junit-report" depends="junit-tests,junit-report-only" />

<target name="junit-report-only" depends="test-init" if="run.junit.report">
<mkdir dir="${build.junit.reports}" />
<junitreport todir="${build.junit.reports}">
<fileset dir="${build.junit.xml}">
@@ -1879,7 +1881,9 @@ see ${build.junit.reports} / ${antunit.reports}
</au:antunit>
</target>

<target name="antunit-report" depends="antunit-tests" if="run.antunit.report">
<target name="antunit-report" depends="antunit-tests,antunit-report-only" />

<target name="antunit-report-only" depends="test-init" if="run.antunit.report">
<length>
<fileset dir="${antunit.xml}" includes="TEST-*.xml" />
</length>


Loading…
Cancel
Save