Ignore PlaybackTest on CI

This commit is contained in:
ByteHamster 2019-12-11 21:57:52 +01:00
parent 376600d5b4
commit d41d58063e
3 changed files with 18 additions and 1 deletions

View File

@ -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:

View 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 {
}

View File

@ -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