diff --git a/docs/manual/OptionalTasks/junit.html b/docs/manual/OptionalTasks/junit.html index 1a6d2745b..4026d5f99 100644 --- a/docs/manual/OptionalTasks/junit.html +++ b/docs/manual/OptionalTasks/junit.html @@ -60,6 +60,11 @@ elements.

(errors are considered failures as well). No. + + filtertrace + Filter out junit and ant stack frames from error and failure stack traces. + No, default is "on." + timeout Cancel the individual tests if the don't finish @@ -220,6 +225,12 @@ can be specified.

(errors are considered failures as well). Overrides value set in <junit>. No. + + filtertrace + Filter out junit and ant stack frames from error and failure stack + traces. Overrides value set in <junit> + No, default is "on." + todir Directory to write the reports to. @@ -295,6 +306,12 @@ generates a test class name for each file that ends in (errors are considered failures as well). Overrides value set in <junit> No. + + filtertrace + Filter out junit and ant stack frames from error and failure stack + traces. Overrides value set in <junit> + No, default is "on." + todir Directory to write the reports to. @@ -371,9 +388,21 @@ 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 +

By using the errorProperty and failureProperty attributes, 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.

+

The filtertrace attribute condenses error and failure stack traces before reporting them. +It works with the plain and xml formatters. It filters out lines that begin with the following +string patterns:

+   "junit.framework.TestCase"
+   "junit.framework.TestResult"
+   "junit.framework.TestSuite"
+   "junit.framework.Assert."
+   "junit.swingui.TestRunner"
+   "junit.awtui.TestRunner"
+   "junit.textui.TestRunner"
+   "java.lang.reflect.Method.invoke("
+   "org.apache.tools.ant."