Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enable code coverage indication in Android Studio Gutter

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.

enter image description here enter image description here

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

like image 531
hushed_voice Avatar asked Oct 30 '18 08:10

hushed_voice


1 Answers

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 .

like image 138
Nnenna Iheke Avatar answered Sep 17 '22 01:09

Nnenna Iheke