Sonar Jacoco for Kotlin Setup not generating code coverage

前端 未结 2 1823
醉话见心
醉话见心 2021-02-07 05:47

I\'m trying to do Sonar Setup with Jacoco for Kotlin to generate Code Coverage report but it\'s not showing any code coverage. While checking Sonar Console it showing following

2条回答
  •  鱼传尺愫
    2021-02-07 06:04

    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'
        ...
        }
    }
    

提交回复
热议问题