When I am running the test classes for my code on Android Studio, I have come across three kinds of coverage.
- Class Coverage
- Method Coverage
- Line Coverage
While method coverage is fairly straightforward to me, I do not understand the difference between line and class coverage. How is class coverage calculated? Is there a formula that takes different metrics into account? How can I improve my class coverage if it has nothing to do with line coverage?