Skip to content

Instantly share code, notes, and snippets.

@vexdev
Last active August 29, 2015 14:20
Show Gist options
  • Save vexdev/92c1add7d50cc726b6a0 to your computer and use it in GitHub Desktop.
Save vexdev/92c1add7d50cc726b6a0 to your computer and use it in GitHub Desktop.
Example configuration for an app using Android Unit Test
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "22.0.0"
defaultConfig {
minSdkVersion 18
}
}
repositories {
mavenCentral()
}
dependencies {
testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-core:2.0.5-beta'
testCompile 'com.android.support:support-v4:22.0.0'
testCompile ('org.powermock:powermock-api-mockito:1.6.2') {
exclude module: 'hamcrest-core'
exclude module: 'objenesis'
}
testCompile ('org.powermock:powermock-module-junit4:1.6.2') {
exclude module: 'hamcrest-core'
exclude module: 'objenesis'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment