Logcat message for disabled test cases added.
authorAlexander Smorkalov <alexander.smorkalov@itseez.com>
Tue, 13 Nov 2012 07:41:08 +0000 (11:41 +0400)
committerAlexander Smorkalov <alexander.smorkalov@itseez.com>
Tue, 13 Nov 2012 07:41:08 +0000 (11:41 +0400)
modules/java/android_test/src/org/opencv/test/OpenCVTestCase.java

index 71e8284..b24d858 100644 (file)
@@ -23,8 +23,9 @@ import org.opencv.features2d.DMatch;
 import org.opencv.features2d.KeyPoint;
 import org.opencv.highgui.Highgui;
 
-public class OpenCVTestCase extends TestCase {
+import android.util.Log;
 
+public class OpenCVTestCase extends TestCase {
     //change to 'true' to unblock fail on fail("Not yet implemented")
     public static final boolean passNYI = true;
 
@@ -34,6 +35,8 @@ public class OpenCVTestCase extends TestCase {
     protected static final double EPS = 0.001;
     protected static final double weakEPS = 0.5;
 
+    private static final String TAG = "OpenCVTestCase";
+
     protected Mat dst;
     protected Mat truth;
 
@@ -180,6 +183,8 @@ public class OpenCVTestCase extends TestCase {
         // Do nothing if the precondition does not hold.
         if (isTestCaseEnabled) {
             super.runTest();
+        } else {
+            Log.e(TAG, "Test case \"" + this.getClass().getName() + "\" disabled!");
         }
     }