How to get code coverage using Android Studio?

前端 未结 9 1956
囚心锁ツ
囚心锁ツ 2020-12-02 07:00

I am developing apps using Android Studio.
I was able to run the test code.
But, I do not know how to get code coverage in android studio.

I have a

9条回答
  •  醉话见心
    2020-12-02 07:46

    Android studio gradle has inbuilt Jacoco plugin which you can use to find code coverage. I have written as article to step by step configure jaococo to find code coverage for Espresso test case but you can use it for Robotium as well. check this out.

    http://qaautomated.blogspot.in/2016/03/how-to-find-code-coverage-with-jacoco.html

提交回复
热议问题