Skip to content

Commit

Permalink
Adding Espresso Framework configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
freemanpivo committed Sep 6, 2016
1 parent 35ce3a8 commit 23b7c91
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
26 changes: 25 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ android {
targetSdkVersion 23
versionCode 1
versionName "1.0"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

}
packagingOptions {
exclude 'LICENSE.txt'
}
lintOptions {
abortOnError false
}
buildTypes {
release {
Expand All @@ -29,7 +38,22 @@ android {
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'

// Android runner and rules support
androidTestCompile 'com.android.support.test:runner:0.5'
androidTestCompile 'com.android.support.test:rules:0.5'

// Espresso support
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})

// Intent mocking support
androidTestCompile 'com.android.support.test.espresso:espresso-intents:2.2.2'

compile 'com.android.support:appcompat-v7:23.0.0'
compile 'com.android.support:design:23.4.0'
compile 'com.android.support:support-v4:23.4.0'

androidTestCompile 'com.android.support:support-annotations:23.4.0'
}
4 changes: 1 addition & 3 deletions jacoco.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ project.afterEvaluate {
)

def coverageSourceDirs = [
"src/main/java",
"src/$productFlavorName/java",
"src/$buildTypeName/java"
"src/main/java"
]
additionalSourceDirs = files(coverageSourceDirs)
sourceDirectories = files(coverageSourceDirs)
Expand Down

0 comments on commit 23b7c91

Please sign in to comment.