How to get code coverage using Android Studio?

前端 未结 9 1951
囚心锁ツ
囚心锁ツ 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:59

    Have you tried using the Jacoco plugin for getting code coverage for your project? It is a good plugin giving you coverage based on your package or individual classes. I am not sure how you configure Jacoco to use with Gradle since i use Maven. Check the link: and see if it helps you

提交回复
热议问题