X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=core%2Ftest%2Fsrc%2Fcom%2Fgoogle%2Fzxing%2Fcommon%2FAbstractBlackBoxTestCase.java;fp=core%2Ftest%2Fsrc%2Fcom%2Fgoogle%2Fzxing%2Fcommon%2FAbstractBlackBoxTestCase.java;h=826369d08e46df54d76fdc50a53ef543fdd5267f;hb=f047e93290da66f1660e2ee654154bb9e5cba10d;hp=eaa246309398ea32548d09ad2572cc1d3ac86856;hpb=f4ac18b31607b7191350126444cce77b641fc0a6;p=zxing.git diff --git a/core/test/src/com/google/zxing/common/AbstractBlackBoxTestCase.java b/core/test/src/com/google/zxing/common/AbstractBlackBoxTestCase.java index eaa24630..826369d0 100644 --- a/core/test/src/com/google/zxing/common/AbstractBlackBoxTestCase.java +++ b/core/test/src/com/google/zxing/common/AbstractBlackBoxTestCase.java @@ -143,6 +143,7 @@ public abstract class AbstractBlackBoxTestCase extends TestCase { } } + // Print the results of all tests first for (int x = 0; x < testCount; x++) { System.out.println("Rotation " + testResults.get(x).getRotation() + " degrees:"); System.out.println(" " + passedCounts[x] + " of " + imageFiles.length + " images passed (" @@ -150,6 +151,10 @@ public abstract class AbstractBlackBoxTestCase extends TestCase { System.out.println(" " + tryHarderCounts[x] + " of " + imageFiles.length + " images passed with try harder (" + testResults.get(x).getTryHarderCount() + " required)"); + } + + // Then run through again and assert if any failed + for (int x = 0; x < testCount; x++) { assertTrue("Rotation " + testResults.get(x).getRotation() + " degrees: Too many images failed", passedCounts[x] >= testResults.get(x).getMustPassCount());