From c0378ed2db7243395197a7c0df4f324e098db446 Mon Sep 17 00:00:00 2001 From: Kenny Root Date: Thu, 27 Aug 2015 15:57:42 -0700 Subject: 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. --- app/build.gradle | 17 ++++++++++++++++- .../java/org/connectbot/StartupTest.java | 22 ++++++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 app/src/androidTest/java/org/connectbot/StartupTest.java 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 mActivityRule = new ActivityTestRule<>(HostListActivity.class); + + @Test + public void dummy() { + SystemClock.sleep(TimeUnit.SECONDS.toMillis(2)); + } +} -- cgit v1.2.3 From eb22c7ff03800374f21c1a8eb16a7f08a366e29e Mon Sep 17 00:00:00 2001 From: Kenny Root Date: Thu, 27 Aug 2015 20:11:06 -0700 Subject: Update to targetSdkVersion 23 --- .idea/codeStyleSettings.xml | 28 ++++++++++++++++++++++++++++ app/app.iml | 32 +++++++++++++++++++++----------- app/build.gradle | 12 ++++++------ connectbot.iml | 2 +- gradle.properties | 1 + 5 files changed, 57 insertions(+), 18 deletions(-) create mode 100644 gradle.properties diff --git a/.idea/codeStyleSettings.xml b/.idea/codeStyleSettings.xml index 659f221..1ca6443 100644 --- a/.idea/codeStyleSettings.xml +++ b/.idea/codeStyleSettings.xml @@ -42,6 +42,34 @@ + +