Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 788eca4

Browse files
author
Kevin Li
authored
Ignore failed tests (#558)
* Remove testCoverageEnabled to accelerate build process * Ignore failed testcases * Fix review comments.
1 parent 29164fc commit 788eca4

File tree

5 files changed

+11
-3
lines changed

5 files changed

+11
-3
lines changed

MapboxGLAndroidSDK/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ android {
6767

6868
buildTypes {
6969
debug {
70-
testCoverageEnabled true
7170
jniDebuggable true
7271
}
7372
}

MapboxGLAndroidSDKTestApp/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ android {
3636

3737
buildTypes {
3838
debug {
39-
testCoverageEnabled true
4039
minifyEnabled false
4140
shrinkResources false
4241
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/camera/CameraUpdateFactoryTest.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import com.mapbox.mapboxsdk.testapp.activity.espresso.DeviceIndependentTestActiv
1010
import org.junit.Assert
1111
import org.junit.Assert.assertEquals
1212
import org.junit.Assert.assertTrue
13+
import org.junit.Ignore
1314
import org.junit.Test
1415
import org.junit.runner.RunWith
1516

@@ -44,6 +45,7 @@ class CameraUpdateFactoryTest : BaseTest() {
4445
assertEquals("tilt should match:", 0.0, cameraPosition.tilt, 0.1)
4546
}
4647

48+
@Ignore("https://github.com/mapbox/mapbox-gl-native-android-internal/issues/69")
4749
@Test
4850
@UiThreadTest
4951
fun testLatLngBoundsTilted() {
@@ -92,6 +94,7 @@ class CameraUpdateFactoryTest : BaseTest() {
9294
assertEquals("tilt should match:", 0.0, cameraPosition.tilt, 0.1)
9395
}
9496

97+
@Ignore("https://github.com/mapbox/mapbox-gl-native-android-internal/issues/69")
9598
@Test
9699
@UiThreadTest
97100
fun testLatLngBoundsTiltedRotated() {
@@ -116,6 +119,7 @@ class CameraUpdateFactoryTest : BaseTest() {
116119
assertEquals("tilt should match:", 45.0, cameraPosition.tilt, 0.1)
117120
}
118121

122+
@Ignore("https://github.com/mapbox/mapbox-gl-native-android-internal/issues/69")
119123
@Test
120124
@UiThreadTest
121125
fun testLatLngBoundsWithProvidedTiltAndRotation() {

MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/maps/MapGestureDetectorTest.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import com.mapbox.mapboxsdk.testapp.activity.BaseTest
1313
import com.mapbox.mapboxsdk.testapp.activity.maplayout.SimpleMapActivity
1414
import org.junit.Assert
1515
import org.junit.Before
16+
import org.junit.Ignore
1617
import org.junit.Test
1718

1819
class MapGestureDetectorTest : BaseTest() {
@@ -121,6 +122,7 @@ class MapGestureDetectorTest : BaseTest() {
121122
}
122123
}
123124

125+
@Ignore("https://github.com/mapbox/mapbox-gl-native-android-internal/issues/69")
124126
@Test
125127
fun doubleTap_minimalMovement() {
126128
validateTestSetup()

MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/testapp/camera/CameraForTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
import com.mapbox.mapboxsdk.geometry.LatLngBounds;
1010
import com.mapbox.mapboxsdk.testapp.activity.BaseTest;
1111
import com.mapbox.mapboxsdk.testapp.activity.espresso.DeviceIndependentTestActivity;
12+
import org.junit.Ignore;
1213
import org.junit.Test;
13-
1414
import java.util.ArrayList;
1515
import java.util.List;
1616

@@ -75,6 +75,7 @@ public void testGetCameraForLatLngBoundsBearing() {
7575
expectedPosition.bearing, actualPosition.bearing, 0.01f);
7676
}
7777

78+
@Ignore("https://github.com/mapbox/mapbox-gl-native-android-internal/issues/69")
7879
@Test
7980
@UiThreadTest
8081
public void testGetCameraForLatLngBoundsTilt() {
@@ -95,6 +96,7 @@ public void testGetCameraForLatLngBoundsTilt() {
9596
expectedPosition.bearing, actualPosition.bearing, 0.01f);
9697
}
9798

99+
@Ignore("https://github.com/mapbox/mapbox-gl-native-android-internal/issues/69")
98100
@Test
99101
@UiThreadTest
100102
public void testGetCameraForLatLngBoundsAll() {
@@ -189,6 +191,7 @@ public void testGetCameraForGeometryBearing() {
189191
expectedPosition.bearing, actualPosition.bearing, 0.01f);
190192
}
191193

194+
@Ignore("https://github.com/mapbox/mapbox-gl-native-android-internal/issues/69")
192195
@Test
193196
@UiThreadTest
194197
public void testGetCameraForGeometryTilt() {
@@ -209,6 +212,7 @@ public void testGetCameraForGeometryTilt() {
209212
expectedPosition.bearing, actualPosition.bearing, 0.01f);
210213
}
211214

215+
@Ignore("https://github.com/mapbox/mapbox-gl-native-android-internal/issues/69")
212216
@Test
213217
@UiThreadTest
214218
public void testGetCameraForGeometryAll() {

0 commit comments

Comments
 (0)