Skip to content

Instantly share code, notes, and snippets.

@vexdev
Created May 6, 2015 22:27
Show Gist options
  • Save vexdev/be5a552e06c5364b4802 to your computer and use it in GitHub Desktop.
Save vexdev/be5a552e06c5364b4802 to your computer and use it in GitHub Desktop.
Example Gradle file for an Android Unit Test app
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "22.0.0"
defaultConfig {
minSdkVersion 18
}
sourceSets {
androidTest {
setRoot('src/test')
}
}
}
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'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment