Anukool
Anukool

Reputation: 5391

Android Studio - Run application with coverage

I am trying to run the application with coverage however the run with coverage button is disabled .

Here is how it looks - enter image description here

How to enable this ?

Thanks .

Upvotes: 2

Views: 889

Answers (1)

Anukool
Anukool

Reputation: 5391

Build.gradle -

apply plugin: 'jacoco'

Command Line -

createDebugAndroidTestCoverageReport

You can get the coverage report at -

{project}/build/reports/coverage/index.html

Upvotes: 1

Related Questions