The code coverage from RobolectricTestRunner unit test code is not honored.
See original GitHub issueFirst of all, thank you for making the effort writing this gradle library to generate the code coverage. After exploring an ocean of blogs, github sample, code snippet, etc for the past three days, I finally come across this repository, the best one and the most potential one that is to rule the world of unified code coverage report. All of other repositories carry all kind of issues, such as out-of-date gradle config, verbose configuration for every module, etc. Only this one gets things done at the most sensible way. So thank you, again. I would never imagine that it has been so challenging to get multiple code coverage report generated.
I have been conducting test with this library. Other than the known issues that you mentioned in the README, I am reporting a new issue. It seems that the code coverage from RobolectricTestRunner unit test code is not honored. You could reproduce this issue from this code sample project. Basically, I just copied the code from your multi-module
and added an unit test run by RobolectricTestRunner
. From the Android Studio Code Coverage report, it says the code is unit test coveraged. But the generated one from rootCodeCoverageReport
says the otherwise.
Would you please confirm this issue ?
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (4 by maintainers)
For the actual details, please refer to this pull request https://github.com/TonyTangAndroid/NeoTechCodeCoverageSample/pull/3
Awesome. Thank you for the clarification. This is by far the best coverage tools that I have ever come across the whole Internet. Combining the codecov support, it is unbelievable easy to get it set-up, which used to be unbelievably challenging to set it up properly prior this repo. Appreciate for this excellent work.