You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
szatidani edited this page May 4, 2017
·
3 revisions
Code Coverage with JaCoCo
JaCoCo is a free code coverage library for Java, which has been created by the EclEmma team based on the lessons learned from using and integration existing libraries for many years.
Setting up the environment
build.gradle
First task is to enable the coverage tests for both of the test types.
android {
buildTypes {
//for instrumental tests
debug {
testCoverageEnabled true
}
}
// for local unit tests
testOptions {
unitTests.all {
jacoco {
includeNoLocationClasses =true
}
}
}
}