JaCoCo doesn't work with Robolectric tests

前端 未结 5 634
Happy的楠姐
Happy的楠姐 2021-01-01 12:38

I wanted to generate code coverage reports on my JUnit tests in my android project so I added the JaCoCo gradle plugin. This is my project level build.gradle fi

5条回答
  •  南笙
    南笙 (楼主)
    2021-01-01 12:54

    I was facing the same issue but now it is resolved for me by following this link,

    issue link: https://github.com/robolectric/robolectric/issues/2230

    Solution for this problem is mentioned here:

    https://github.com/dampcake/Robolectric-JaCoCo-Sample/commit/f9884b96ba5e456cddb3d4d2df277065bb26f1d3

提交回复
热议问题