mirror of
https://github.com/zxing/zxing.git
synced 2025-01-13 04:07:27 -08:00
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:
parent
10dfe7789b
commit
e2324bc2ae
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue