We are using jacoco plugin in build gradle and we are using this too :
configurations.all {
resolutionStrategy {
force 'org.jacoco:org.jacoco.report:0.7.4.201502262128'
force 'org.jacoco:org.jacoco.core:0.7.4.201502262128'
}
}
}
We are using gradle 3.3.1 version.
The problem is it is not creating proper jacoco code coverage report. The size of the file created after running unit tests is only 49KB and when we use sonar to analyze and report it to sonar server it only shows 0.2% unit test coverage. We are sure it should be a lot more than that.
We are using robolectric version 3.2.2 for unit tests.
Do you see any version mismatch? Any idea about the problem?