Author: jaz
Date: Mon Apr 2 20:28:41 2007
New Revision: 525012
URL:
http://svn.apache.org/viewvc?view=rev&rev=525012Log:
added log to show the number of test cases in a test file
Modified:
ofbiz/trunk/framework/testtools/src/org/ofbiz/testtools/ModelTestSuite.java
Modified: ofbiz/trunk/framework/testtools/src/org/ofbiz/testtools/ModelTestSuite.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/testtools/src/org/ofbiz/testtools/ModelTestSuite.java?view=diff&rev=525012&r1=525011&r2=525012==============================================================================
--- ofbiz/trunk/framework/testtools/src/org/ofbiz/testtools/ModelTestSuite.java (original)
+++ ofbiz/trunk/framework/testtools/src/org/ofbiz/testtools/ModelTestSuite.java Mon Apr 2 20:28:41 2007
@@ -80,12 +80,14 @@
suite.addTestSuite(clz);
Enumeration testEnum = suite.tests();
int testsAdded = 0;
+ int casesAdded = 0;
while (testEnum.hasMoreElements()) {
Test tst = (Test) testEnum.nextElement();
this.testList.add(tst);
+ casesAdded += tst.countTestCases();
testsAdded++;
}
- Debug.logInfo("Added " + testsAdded + " tests from the class: " + className, module);
+ Debug.logInfo("Added " + testsAdded + " tests [" + casesAdded + " cases] from the class: " + className, module);
} catch (Exception e) {
String errMsg = "Unable to load test suite class : " + className;
Debug.logError(e, errMsg, module);