Remove integration tests

pull/37/head
Mattia Iavarone 8 years ago
parent 2b54adbc13
commit 6be119a75b
  1. 9
      cameraview/src/androidTest/java/com/otaliastudios/cameraview/IntegrationTest.java

@ -12,6 +12,7 @@ import android.view.ViewGroup;
import org.junit.After; import org.junit.After;
import org.junit.Before; import org.junit.Before;
import org.junit.BeforeClass; import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Rule; import org.junit.Rule;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
@ -24,8 +25,15 @@ import static org.mockito.Mockito.*;
import static org.junit.Assert.*; import static org.junit.Assert.*;
/**
* These tests work great on real devices, and are the only way to test actual CameraController
* implementation - we really need to open the camera device.
* Unfortunately they fail unreliably on emulated devices, due to some bug with the
* emulated camera controller. Waiting for it to be fixed.
*/
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@MediumTest @MediumTest
@Ignore
public class IntegrationTest extends BaseTest { public class IntegrationTest extends BaseTest {
@Rule @Rule
@ -42,6 +50,7 @@ public class IntegrationTest extends BaseTest {
@Before @Before
public void setUp() { public void setUp() {
WorkerHandler.destroy();
ui(new Runnable() { ui(new Runnable() {
@Override @Override
public void run() { public void run() {

Loading…
Cancel
Save