diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2015-06-11 00:05:13 +0200 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2015-06-11 00:05:13 +0200 |
commit | d16b09b2a6be41319b993c27e69b85067a7f1c46 (patch) | |
tree | 78deb6554f9bd5f3505adb39bfbbd10e692dab9e /OpenKeychain/build.gradle | |
parent | 05fcbcae7b816e72363030d499a43e0e6042b320 (diff) | |
download | open-keychain-d16b09b2a6be41319b993c27e69b85067a7f1c46.tar.gz open-keychain-d16b09b2a6be41319b993c27e69b85067a7f1c46.tar.bz2 open-keychain-d16b09b2a6be41319b993c27e69b85067a7f1c46.zip |
Use new officially supported way for local unit tests, many dependencies upgraded for this, temporary disabled separate debug builds
Diffstat (limited to 'OpenKeychain/build.gradle')
-rw-r--r-- | OpenKeychain/build.gradle | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/OpenKeychain/build.gradle b/OpenKeychain/build.gradle index ad31dc48d..e84c2107c 100644 --- a/OpenKeychain/build.gradle +++ b/OpenKeychain/build.gradle @@ -10,8 +10,18 @@ dependencies { compile 'com.android.support:appcompat-v7:22.1.1' compile 'com.android.support:recyclerview-v7:22.1.0' compile 'com.android.support:cardview-v7:22.1.0' - - // UI testing libs + + // Local Unit tests with Robolectric + // https://developer.android.com/training/testing/unit-testing/local-unit-tests.html#run + // https://github.com/nenick/AndroidStudioAndRobolectric + // http://www.vogella.com/tutorials/Robolectric/article.html + testCompile 'junit:junit:4.12' + testCompile 'org.hamcrest:hamcrest-core:1.1' + testCompile 'org.hamcrest:hamcrest-library:1.1' + testCompile 'org.hamcrest:hamcrest-integration:1.1' + testCompile "org.robolectric:robolectric:3.0-rc3" + + // UI testing with Espresso androidTestCompile 'com.android.support.test:runner:0.2' androidTestCompile 'com.android.support.test:rules:0.2' androidTestCompile 'com.android.support.test.espresso:espresso-core:2.1' @@ -137,7 +147,7 @@ android { resValue "string", "tempstorage_authority", "org.sufficientlysecure.keychain.tempstorage" } - extra { + /*extra { applicationIdSuffix ".debug" // Reference them in the java files with e.g. BuildConfig.ACCOUNT_TYPE. @@ -149,7 +159,7 @@ android { resValue "string", "account_type", "org.sufficientlysecure.keychain.debug.account" resValue "string", "provider_authority", "org.sufficientlysecure.keychain.debug.provider" resValue "string", "tempstorage_authority", "org.sufficientlysecure.keychain.debug.tempstorage" - } + }*/ } /* |