diff options
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" - } + }*/ } /* |