Remove integration tests from CI

pull/493/head
Mattia Iavarone 5 years ago
parent 9761f1aeba
commit e38418ae6d
  1. 5
      cameraview/build.gradle
  2. 4
      cameraview/src/androidTest/java/com/otaliastudios/cameraview/engine/CameraIntegration1Test.java
  3. 7
      cameraview/src/androidTest/java/com/otaliastudios/cameraview/engine/CameraIntegration2Test.java

@ -213,6 +213,11 @@ task mergedCoverageReport(type: JacocoReport) {
'**/Dagger*Component$Builder.class', '**/Dagger*Component$Builder.class',
'**/*Module_*Factory.class', '**/*Module_*Factory.class',
] ]
if (travis) {
// Since this is not testable on the emulator...
classFilter.add('com.otaliastudios.cameraview.engine.Camera1Engine')
classFilter.add('com.otaliastudios.cameraview.engine.Camera2Engine')
}
classDirectories = fileTree(dir: classDir, excludes: classFilter); classDirectories = fileTree(dir: classDir, excludes: classFilter);
reports.html.enabled = true reports.html.enabled = true

@ -14,11 +14,11 @@ import androidx.test.filters.LargeTest;
* These tests work great on real devices, and are the only way to test actual CameraEngine * These tests work great on real devices, and are the only way to test actual CameraEngine
* implementation - we really need to open the camera device. * implementation - we really need to open the camera device.
* Unfortunately they fail unreliably on emulated devices, due to some bug with the * Unfortunately they fail unreliably on emulated devices, due to some bug with the
* emulated camera controller. Waiting for it to be fixed. * emulated camera controller.
*/ */
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@LargeTest @LargeTest
@Ignore @Ignore("These do work but fail on CI emulators, due to bugs in the Camera1 emulated devices.")
public class CameraIntegration1Test extends CameraIntegrationTest { public class CameraIntegration1Test extends CameraIntegrationTest {
@NonNull @NonNull

@ -9,8 +9,15 @@ import androidx.annotation.NonNull;
import androidx.test.ext.junit.runners.AndroidJUnit4; import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.filters.LargeTest; import androidx.test.filters.LargeTest;
/**
* These tests work great on real devices, and are the only way to test actual CameraEngine
* 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.
*/
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@LargeTest @LargeTest
@Ignore("These do work but fail on CI emulators.")
public class CameraIntegration2Test extends CameraIntegrationTest { public class CameraIntegration2Test extends CameraIntegrationTest {
@NonNull @NonNull

Loading…
Cancel
Save