Logcat message for disabled test cases added.

pull/150/head
Alexander Smorkalov 12 years ago
parent 9f5fcff3ea
commit 96e4eed018
  1. 7
      modules/java/android_test/src/org/opencv/test/OpenCVTestCase.java

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

Loading…
Cancel
Save