Skip to content

Instantly share code, notes, and snippets.

@femmerling
Created January 29, 2015 10:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save femmerling/d0e05069f51dc875ed82 to your computer and use it in GitHub Desktop.
Save femmerling/d0e05069f51dc875ed82 to your computer and use it in GitHub Desktop.
Test module build.gradle
// fill this with the name of your app in gradle settings
evaluationDependsOn(':app')
ext.androidProject = 'app'
apply plugin: 'cobertura'
apply plugin: 'com.kageiit.robojava'
cobertura {
coverageFormats = ['html', 'xml']
coverageIgnoreTrivial = true
coverageIgnores = ['org.slf4j.Logger.*']
// you can change this to any directory you want
coverageReportDir = new File("$buildDir/reports/cobertura")
}
test.finalizedBy(project.tasks.cobertura)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment