From 3489bebc3dbcc9927a0f6d069a56dcb158087730 Mon Sep 17 00:00:00 2001
From: Stephane Bailliez
Date: Sun, 9 Dec 2001 13:40:18 +0000
Subject: [PATCH] Documentation patch from Scott Stirling
about stack filtering.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270101 13f79535-47bb-0310-9956-ffa450edef68
---
docs/manual/OptionalTasks/junit.html | 31 +++++++++++++++++++++++++++-
1 file changed, 30 insertions(+), 1 deletion(-)
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."