android / android/android-test

coverage never generates in com.android.test modules

Open
#2,473 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.2k
Forks
342
Avg merge
11h 29m
Merged PRs (30d)
2

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](https://github.com/user-attachments/files/25129083/CoverageDemoApp.zip)
2. Run instrumented tests in the `app` module.
3. Note that `app/build/outputs/code_coverage` folder contains coverage files
2. 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.

Contributor guide

Open the contributing guide

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.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.