From 39c3dd318a9c8ea27e44ee5bdd2db1d735f5c793 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Tue, 17 Jul 2001 13:09:48 +0000 Subject: [PATCH] documentation update for new errorProperty and failureProperty attributes of . PR: 1794 Submitted by: robert.watkins@qsipayments.com (Robert Watkins) git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269348 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/OptionalTasks/junit.html | 39 ++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/docs/manual/OptionalTasks/junit.html b/docs/manual/OptionalTasks/junit.html index d2ec6fd13..97e3e1496 100644 --- a/docs/manual/OptionalTasks/junit.html +++ b/docs/manual/OptionalTasks/junit.html @@ -43,12 +43,23 @@ elements.

run. No, default is "off" + + errorProperty + The name of a property to set in the event of an error. + No. + haltonfailure Stop the build process if a test fails (errors are considered failures as well). No, default is "off" + + failureProperty + The name of a property to set in the event of a failure + (errors are considered failures as well). + No. + timeout Cancel the individual tests if the don't finish @@ -190,6 +201,12 @@ can be specified.

run. Overrides value set in <junit>. No + + errorProperty + The name of a property to set in the event of an error. + Overrides value set in <junit>. + No. + haltonfailure Stop the build process if a test fails (errors are @@ -197,6 +214,12 @@ can be specified.

<junit>. No + + failureProperty + The name of a property to set in the event of a failure + (errors are considered failures as well). Overrides value set in <junit>. + No. + todir Directory to write the reports to. @@ -253,6 +276,12 @@ generates a test class name for each file that ends in run. Overrides value set in <junit>. No + + errorProperty + The name of a property to set in the event of an error. + Overrides value set in <junit>. + No. + haltonfailure Stop the build process if a test fails (errors are @@ -260,6 +289,12 @@ generates a test class name for each file that ends in <junit>. No + + failureProperty + The name of a property to set in the event of a failure + (errors are considered failures as well). Overrides value set in <junit> + No. + todir Directory to write the reports to. @@ -336,5 +371,9 @@ test is run in a separate VM. If a test fails, the build process is aborted. Results are collected in files named TEST-name.txt and written to ${reports.tests}.

+

By using the errorProperty and failureProperty tags, it is possible to +perform setup work (such as starting an external server), execute the test, +clean up, and still fail the build in the event of a failure.

+