Commit 96e4eed0 authored by Alexander Smorkalov's avatar Alexander Smorkalov

Logcat message for disabled test cases added.

parent 9f5fcff3
...@@ -23,8 +23,9 @@ import org.opencv.features2d.DMatch; ...@@ -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 { ...@@ -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 { ...@@ -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!");
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment