From 7dd4e5caa1442c6a5a08a054669940a51eba8b25 Mon Sep 17 00:00:00 2001 From: orionlee Date: Thu, 17 May 2018 14:23:07 -0700 Subject: core tests fix: ensure running test suite (gradlew connectedAndroidTest) include all test. The existing config does not include the tests in feed/ directory. --- core/build.gradle | 2 +- .../de/danoeh/antennapod/core/AntennaPodTestRunner.java | 16 ++++++++++++++++ .../antennapod/core/tests/AntennaPodTestRunner.java | 16 ---------------- 3 files changed, 17 insertions(+), 17 deletions(-) create mode 100644 core/src/androidTest/java/de/danoeh/antennapod/core/AntennaPodTestRunner.java delete mode 100644 core/src/androidTest/java/de/danoeh/antennapod/core/tests/AntennaPodTestRunner.java diff --git a/core/build.gradle b/core/build.gradle index de156d7c7..9ac6ca0b5 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -10,7 +10,7 @@ android { versionCode 1 versionName "1.0" testApplicationId "de.danoeh.antennapod.core.tests" - testInstrumentationRunner "de.danoeh.antennapod.core.tests.AntennaPodTestRunner" + testInstrumentationRunner "de.danoeh.antennapod.core.AntennaPodTestRunner" } buildTypes { release { diff --git a/core/src/androidTest/java/de/danoeh/antennapod/core/AntennaPodTestRunner.java b/core/src/androidTest/java/de/danoeh/antennapod/core/AntennaPodTestRunner.java new file mode 100644 index 000000000..5d086c054 --- /dev/null +++ b/core/src/androidTest/java/de/danoeh/antennapod/core/AntennaPodTestRunner.java @@ -0,0 +1,16 @@ +package de.danoeh.antennapod.core; + +import android.test.InstrumentationTestRunner; +import android.test.suitebuilder.TestSuiteBuilder; + +import junit.framework.TestSuite; + +public class AntennaPodTestRunner extends InstrumentationTestRunner { + + @Override + public TestSuite getAllTests() { + return new TestSuiteBuilder(AntennaPodTestRunner.class) + .includeAllPackagesUnderHere() + .build(); + } +} \ No newline at end of file diff --git a/core/src/androidTest/java/de/danoeh/antennapod/core/tests/AntennaPodTestRunner.java b/core/src/androidTest/java/de/danoeh/antennapod/core/tests/AntennaPodTestRunner.java deleted file mode 100644 index 78e854b41..000000000 --- a/core/src/androidTest/java/de/danoeh/antennapod/core/tests/AntennaPodTestRunner.java +++ /dev/null @@ -1,16 +0,0 @@ -package de.danoeh.antennapod.core.tests; - -import android.test.InstrumentationTestRunner; -import android.test.suitebuilder.TestSuiteBuilder; - -import junit.framework.TestSuite; - -public class AntennaPodTestRunner extends InstrumentationTestRunner { - - @Override - public TestSuite getAllTests() { - return new TestSuiteBuilder(AntennaPodTestRunner.class) - .includeAllPackagesUnderHere() - .build(); - } -} \ No newline at end of file -- cgit v1.2.3