Skip to content

Commit

Permalink
Mark select map tests as flaky
Browse files Browse the repository at this point in the history
Some of the map mode tests are a little unreliable and
can fail if the simulated finger gestures are not
perfectly precise.
  • Loading branch information
penguin359 committed Aug 4, 2024
1 parent 424d1be commit 3f003ea
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions androidTest/java/org/aprsdroid/app/MapModeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import androidx.test.espresso.action.Swipe;
import androidx.test.ext.junit.rules.ActivityScenarioRule;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.filters.FlakyTest;
import androidx.test.platform.app.InstrumentationRegistry;

import com.google.android.gms.common.ConnectionResult;
Expand Down Expand Up @@ -136,6 +137,7 @@ public void whenMapIsDragged_thenPositionAndButtonShown() {
}

@Test
@FlakyTest
public void whenMapIsDraggedBackAndForth_thenPositionIsOriginalCoordinates() {
Assume.assumeThat("Google Play Services requires",
GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(appContext),
Expand All @@ -151,6 +153,7 @@ public void whenMapIsDraggedBackAndForth_thenPositionIsOriginalCoordinates() {
}

@Test
@FlakyTest
public void whenMapIsDraggedBackAndForthAndSaved_thenPositionIsSavedCorrectly() {
Assume.assumeThat("Google Play Services requires",
GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(appContext),
Expand Down Expand Up @@ -226,6 +229,7 @@ public void whenMapIsDragged_thenPositionAndButtonShown() {
}

@Test
@FlakyTest
public void whenMapIsDraggedBackAndForth_thenPositionIsOriginalCoordinates() {
Assume.assumeThat("Google Play Services requires",
GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(appContext),
Expand All @@ -241,6 +245,7 @@ public void whenMapIsDraggedBackAndForth_thenPositionIsOriginalCoordinates() {
}

@Test
@FlakyTest
public void whenMapIsDraggedBackAndForthAndSaved_thenPositionIsSavedCorrectly() {
Assume.assumeThat("Google Play Services requires",
GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(appContext),
Expand Down Expand Up @@ -316,6 +321,7 @@ public void whenMapIsDragged_thenPositionAndButtonShown() {
}

@Test
@FlakyTest
public void whenMapIsDraggedBackAndForth_thenPositionIsOriginalCoordinates() {
Assume.assumeThat("Google Play Services requires",
GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(appContext),
Expand All @@ -331,6 +337,7 @@ public void whenMapIsDraggedBackAndForth_thenPositionIsOriginalCoordinates() {
}

@Test
@FlakyTest
public void whenMapIsDraggedBackAndForthAndSaved_thenPositionIsSavedCorrectly() {
Assume.assumeThat("Google Play Services requires",
GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(appContext),
Expand Down Expand Up @@ -406,6 +413,7 @@ public void whenMapIsDragged_thenPositionAndButtonShown() {
}

@Test
@FlakyTest
public void whenMapIsDraggedBackAndForth_thenPositionIsOriginalCoordinates() {
Assume.assumeThat("Google Play Services requires",
GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(appContext),
Expand All @@ -421,6 +429,7 @@ public void whenMapIsDraggedBackAndForth_thenPositionIsOriginalCoordinates() {
}

@Test
@FlakyTest
public void whenMapIsDraggedBackAndForthAndSaved_thenPositionIsSavedCorrectly() {
Assume.assumeThat("Google Play Services requires",
GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(appContext),
Expand Down

0 comments on commit 3f003ea

Please sign in to comment.