mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-02-02 03:36:48 +01:00
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
|
||||
headless: true
|
||||
disable-animations: true
|
||||
script: ./gradlew connectedPlayDebugAndroidTest
|
||||
script: ./gradlew connectedPlayDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.notAnnotation=de.test.antennapod.IgnoreOnCi
|
||||
- uses: actions/upload-artifact@v1
|
||||
if: failure()
|
||||
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.LongList;
|
||||
import de.test.antennapod.EspressoTestUtils;
|
||||
import de.test.antennapod.IgnoreOnCi;
|
||||
import de.test.antennapod.ui.UITestUtils;
|
||||
import org.awaitility.Awaitility;
|
||||
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.
|
||||
*/
|
||||
@LargeTest
|
||||
@IgnoreOnCi
|
||||
@RunWith(Parameterized.class)
|
||||
public class PlaybackTest {
|
||||
@Rule
|
||||
|
Loading…
x
Reference in New Issue
Block a user