Sonar Jacoco for Kotlin Setup not generating code coverage

瘦欲@ 提交于 2019-12-03 05:07:01

If you're using the android test orchestrator this is likely the problem.

I had the same issue today and after disabling the android test orchestrator the coverage is working again.

Bug report: https://issuetracker.google.com/issues/72758547

I'm not sure how Android Kotlin builds are configured, but in my Android Java build.gradle I had to comment out the test orchestrator like so:

android {
...
    testOptions {
        // temporarily disable the orchestrator as this breaks coverage: https://issuetracker.google.com/issues/72758547
        //execution 'ANDROID_TEST_ORCHESTRATOR'
    ...
    }
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!