Added slightly better blackbox unit test stats.

git-svn-id: https://zxing.googlecode.com/svn/trunk@1005 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
dswitkin 2009-06-29 21:57:59 +00:00
parent 10dfe7789b
commit e2324bc2ae

View file

@ -212,9 +212,11 @@ public abstract class AbstractBlackBoxTestCase extends TestCase {
int totalTests = imageFiles.length * testCount * 2;
System.out.println("TOTALS:\n Decoded " + totalFound + " images out of " + totalTests +
" (" + (totalFound * 100 / totalTests) + "%)");
" (" + (totalFound * 100 / totalTests) + "%, " + totalMustPass + " required)");
if (totalFound > totalMustPass) {
System.out.println(" *** Test too lax by " + (totalFound - totalMustPass) + " images");
} else if (totalFound < totalMustPass) {
System.out.println(" *** Test failed by " + (totalMustPass - totalFound) + " images");
}
// Then run through again and assert if any failed