When I run my unit tests in the android studio with code coverage and select to see the source from the Coverage toolbar, I cannot see the code coverage information in the gutter(sidebar) of the editor as shown here. There is no information about the number of hits or color indicators in the gutter.
This is what I am using:
Android Studio 3.2.1
Build #AI-181.5540.7.32.5056338, built on October 9, 2018
JRE: 1.8.0_152-release-1136-b06 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.15.0-34-generic
http://tutorials.webtecho.com/code-coverage-in-android-studio/
Go to configuration -> Unit test , click the drop down then click the project module you would like to enable coverage on then click code coverage and enable tracing . Also click on Analyze then Show code coverage data .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With