Skip to content

Commit

Permalink
Update test naming schema
Browse files Browse the repository at this point in the history
close #48
  • Loading branch information
isuPatches committed Jul 2, 2017
1 parent 5495cf9 commit 2924875
Show file tree
Hide file tree
Showing 4 changed files with 203 additions and 185 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ before_script:
- android-wait-for-emulator
- adb shell input keyevent 82 &

script: ./gradlew clean connectedAndroidTest -PdisablePreDex --stacktrace
script: ./gradlew clean connectedAndroidTest -PdisablePreDex --debug --stacktrace
19 changes: 15 additions & 4 deletions gradle/jacoco.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,28 @@ def classDirs = fileTree(
'**/*Factory*.class',
'**/*$Builder*'])

task jacocoDebugTestReport(type: JacocoReport, dependsOn: ["connectedDebugAndroidTest"]) {
task jacocoDebugTestReport(type: JacocoReport) {
dependsOn = ["connectedDebugAndroidTest"]
group = "Reporting"
description = "Generate Jacoco coverage report for debug tests"
description = "Run tests and generate Jacoco coverage report for debug"
classDirectories = classDirs
additionalSourceDirs = files(coverageSourceDirs)
sourceDirectories = files(coverageSourceDirs)
executionData = files([fileTree(dir: 'build/outputs/code-coverage/connected', include: '**/*.ec')])

onlyIf = {
true
reports {
xml.enabled = true
html.enabled = true
}
}

task jacocoDebugReport(type: JacocoReport) {
group = "Reporting"
description = "Generate Jacoco coverage report for debug"
classDirectories = classDirs
additionalSourceDirs = files(coverageSourceDirs)
sourceDirectories = files(coverageSourceDirs)
executionData = files([fileTree(dir: 'build/outputs/code-coverage/connected', include: '**/*.ec')])

reports {
xml.enabled = true
Expand Down
Loading

0 comments on commit 2924875

Please sign in to comment.