Skip to content

Instantly share code, notes, and snippets.

@jaywick
Created June 21, 2015 11:29
Show Gist options
  • Save jaywick/7b2e1a91f3fc6739fb7f to your computer and use it in GitHub Desktop.
Save jaywick/7b2e1a91f3fc6739fb7f to your computer and use it in GitHub Desktop.
Android Studio - Unit Testing - Gradle Files
apply plugin: 'com.android.application'
android {
// ...
}
dependencies {
compile(project(':lib'))
}
apply plugin: 'java'
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-core:1.9.5'
}
buildscript {
// ...
dependencies {
classpath 'com.android.tools.build:gradle:1.2.3'
}
}
allprojects {
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment