diff options
author | Kenny Root <kenny@the-b.org> | 2015-08-27 15:57:42 -0700 |
---|---|---|
committer | Kenny Root <kenny@the-b.org> | 2015-08-27 21:41:06 -0700 |
commit | c0378ed2db7243395197a7c0df4f324e098db446 (patch) | |
tree | 7aa62ec061971c964e63df4e195e706241c69e86 | |
parent | b3f5f9b41c89f74792f2a027ed2ab31a60c88b5e (diff) | |
download | connectbot-c0378ed2db7243395197a7c0df4f324e098db446.tar.gz connectbot-c0378ed2db7243395197a7c0df4f324e098db446.tar.bz2 connectbot-c0378ed2db7243395197a7c0df4f324e098db446.zip |
Add dummy Android test
This is the start of the regression tests to make sure stuff like Local
connections not working doesn't happen again.
-rw-r--r-- | app/build.gradle | 17 | ||||
-rw-r--r-- | app/src/androidTest/java/org/connectbot/StartupTest.java | 22 |
2 files changed, 38 insertions, 1 deletions
diff --git a/app/build.gradle b/app/build.gradle index e791fc9..60e76f1 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -55,7 +55,7 @@ android { } testApplicationId "org.connectbot.tests" - testInstrumentationRunner "android.test.InstrumentationTestRunner" + testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } signingConfigs { @@ -66,6 +66,16 @@ android { compile "com.android.support:support-v4:22.2.1" compile "com.android.support:appcompat-v7:22.2.1" compile "com.android.support:design:22.2.1" + + androidTestCompile('com.android.support.test:runner:0.3') { + exclude module: "support-annotations" + } + androidTestCompile('com.android.support.test:rules:0.3') { + exclude module: "support-annotations" + } + androidTestCompile('com.android.support.test.espresso:espresso-core:2.2') { + exclude module: "support-annotations" + } } buildTypes { @@ -83,6 +93,11 @@ android { testCoverageEnabled true } } + + packagingOptions { + exclude 'META-INF/LICENSE.txt' + exclude 'LICENSE.txt' + } } def getGitDescription = { -> diff --git a/app/src/androidTest/java/org/connectbot/StartupTest.java b/app/src/androidTest/java/org/connectbot/StartupTest.java new file mode 100644 index 0000000..eff587f --- /dev/null +++ b/app/src/androidTest/java/org/connectbot/StartupTest.java @@ -0,0 +1,22 @@ +package org.connectbot; + +import android.os.SystemClock; +import android.support.test.rule.ActivityTestRule; +import android.support.test.runner.AndroidJUnit4; + +import org.junit.Rule; +import org.junit.Test; +import org.junit.runner.RunWith; + +import java.util.concurrent.TimeUnit; + +@RunWith(AndroidJUnit4.class) +public class StartupTest { + @Rule + public final ActivityTestRule<HostListActivity> mActivityRule = new ActivityTestRule<>(HostListActivity.class); + + @Test + public void dummy() { + SystemClock.sleep(TimeUnit.SECONDS.toMillis(2)); + } +} |