Author: sichen
Date: Fri Nov 30 12:08:47 2007
New Revision: 599939
URL:
http://svn.apache.org/viewvc?rev=599939&view=revLog:
Print exceptions when a unit test fails.
Modified:
ofbiz/trunk/framework/testtools/src/org/ofbiz/testtools/TestRunContainer.java
Modified: ofbiz/trunk/framework/testtools/src/org/ofbiz/testtools/TestRunContainer.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/testtools/src/org/ofbiz/testtools/TestRunContainer.java?rev=599939&r1=599938&r2=599939&view=diff==============================================================================
--- ofbiz/trunk/framework/testtools/src/org/ofbiz/testtools/TestRunContainer.java (original)
+++ ofbiz/trunk/framework/testtools/src/org/ofbiz/testtools/TestRunContainer.java Fri Nov 30 12:08:47 2007
@@ -158,7 +158,11 @@
Debug.log("None");
} else {
while (fail.hasMoreElements()) {
- Debug.log("--> " + fail.nextElement(), module);
+ Object failure = fail.nextElement();
+ Debug.log("--> " + failure, module);
+ if (failure instanceof TestFailure) {
+ Debug.log(((TestFailure) failure).trace());
+ }
}
}
Debug.log("[JUNIT] ------------------------------------------------------------------ [JUNIT]", module);