Ignore PlaybackTest on CI
This commit is contained in:
parent
376600d5b4
commit
d41d58063e
2
.github/workflows/android-emulator.yml
vendored
2
.github/workflows/android-emulator.yml
vendored
@ -21,7 +21,7 @@ jobs:
|
|||||||
api-level: 28
|
api-level: 28
|
||||||
headless: true
|
headless: true
|
||||||
disable-animations: true
|
disable-animations: true
|
||||||
script: ./gradlew connectedPlayDebugAndroidTest
|
script: ./gradlew connectedPlayDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.notAnnotation=de.test.antennapod.IgnoreOnCi
|
||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v1
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
|
15
app/src/androidTest/java/de/test/antennapod/IgnoreOnCi.java
Normal file
15
app/src/androidTest/java/de/test/antennapod/IgnoreOnCi.java
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
package de.test.antennapod;
|
||||||
|
|
||||||
|
import java.lang.annotation.ElementType;
|
||||||
|
import java.lang.annotation.Retention;
|
||||||
|
import java.lang.annotation.RetentionPolicy;
|
||||||
|
import java.lang.annotation.Target;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Tests with this annotation are ignored on CI. This could be reasonable
|
||||||
|
* if the performance of the CI server is not enough to provide a reliable result.
|
||||||
|
*/
|
||||||
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
|
@Target(ElementType.TYPE)
|
||||||
|
public @interface IgnoreOnCi {
|
||||||
|
}
|
@ -21,6 +21,7 @@ import de.danoeh.antennapod.core.storage.DBWriter;
|
|||||||
import de.danoeh.antennapod.core.util.IntentUtils;
|
import de.danoeh.antennapod.core.util.IntentUtils;
|
||||||
import de.danoeh.antennapod.core.util.LongList;
|
import de.danoeh.antennapod.core.util.LongList;
|
||||||
import de.test.antennapod.EspressoTestUtils;
|
import de.test.antennapod.EspressoTestUtils;
|
||||||
|
import de.test.antennapod.IgnoreOnCi;
|
||||||
import de.test.antennapod.ui.UITestUtils;
|
import de.test.antennapod.ui.UITestUtils;
|
||||||
import org.awaitility.Awaitility;
|
import org.awaitility.Awaitility;
|
||||||
import org.hamcrest.Matcher;
|
import org.hamcrest.Matcher;
|
||||||
@ -60,6 +61,7 @@ import static org.junit.Assert.assertTrue;
|
|||||||
* Test cases for starting and ending playback from the MainActivity and AudioPlayerActivity.
|
* Test cases for starting and ending playback from the MainActivity and AudioPlayerActivity.
|
||||||
*/
|
*/
|
||||||
@LargeTest
|
@LargeTest
|
||||||
|
@IgnoreOnCi
|
||||||
@RunWith(Parameterized.class)
|
@RunWith(Parameterized.class)
|
||||||
public class PlaybackTest {
|
public class PlaybackTest {
|
||||||
@Rule
|
@Rule
|
||||||
|
Loading…
x
Reference in New Issue
Block a user