Test Camera1Integration

pull/695/head
Mattia Iavarone 6 years ago
parent 151c5eaa06
commit 8fb766cb0d
  1. 5
      .github/workflows/build.yml
  2. 2
      cameraview/src/androidTest/java/com/otaliastudios/cameraview/engine/Camera1IntegrationTest.java
  3. 4
      cameraview/src/androidTest/java/com/otaliastudios/cameraview/markers/MarkerLayoutTest.java

@ -39,9 +39,8 @@ jobs:
strategy: strategy:
matrix: matrix:
# TODO 29 fails due to Mockito issues, probably reproducible locally. # TODO 29 fails due to Mockito issues, probably reproducible locally.
# TODO 28 fails in MarkerLayoutTest.testOnEvent() - weird FrameLayout.onMeasure crash # 22, 23, 24, 25, 26, 27, 28 work - some of them, with SdkExclude restrictions.
# 22, 23, 24, 25, 26, 27, 28? EMULATOR_API: [26]
EMULATOR_API: [28]
EMULATOR_ARCH: [x86_64] EMULATOR_ARCH: [x86_64]
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1

@ -17,7 +17,7 @@ import androidx.test.filters.RequiresDevice;
*/ */
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@LargeTest @LargeTest
@RequiresDevice // @RequiresDevice
public class Camera1IntegrationTest extends CameraIntegrationTest { public class Camera1IntegrationTest extends CameraIntegrationTest {
@NonNull @NonNull

@ -28,9 +28,9 @@ import static org.mockito.Mockito.verify;
/** /**
* Not clear why, but for some reason on API 28 the UiThreadTests here crash for an internal NPE * Not clear why, but for some reason on API 28 the UiThreadTests here crash for an internal NPE
* in FrameLayout.onMeasure. Trying with uiSync. * in FrameLayout.onMeasure.
*/ */
// @SdkExclude(minSdkVersion = 28, maxSdkVersion = 28) @SdkExclude(minSdkVersion = 28, maxSdkVersion = 28)
@TargetApi(17) @TargetApi(17)
public class MarkerLayoutTest extends BaseTest { public class MarkerLayoutTest extends BaseTest {

Loading…
Cancel
Save