coverage never generates in com.android.test modules

Open
#2,473 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
java

Research direction

Start by reproducing the issue with the attached CoverageDemoApp.zip: run instrumented tests in the app and testmodule modules and compare their build/outputs/code_coverage directories. The work is done when the com.android.test testmodule generates the expected .ec coverage files there, matching the app module behavior.

Written by the indexing model from the issue text.

Description

com.android.test modules do not appear to produce any *.ec files for code coverage when running its test.

Steps:

  1. Download CoverageDemoApp.zip
  2. Run instrumented tests in the app module.
  3. Note that app/build/outputs/code_coverage folder contains coverage files
  4. Run instrumented tests in the testmodule module.

BUG: testmodule/build/outputs/code_coverage folder is empty

Attached project is just a new hello world Android project with a test module added in.

Dominant language
Java
Stars
1.2k
Forks
342
Avg merge
1d 14h
Merged PRs (30d)
5

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from android/android-test

All issues in android/android-test

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.