Skip to content

[BUG]: CI is currently failing for code coverage #5780

Description

@BenHenning

Describe the bug

Code coverage is failing on develop with an indicator that the test for RecentlyPlayedActivity is currently missing:

  COVERAGE FAILURE REPORT:
  -----------------------
  Coverage Report Failure:
  ------------------------
  Test Target: 
  Failure Message: No appropriate test file found for app/src/main/java/org/oppia/android/app/home/recentlyplayed/RecentlyPlayedActivity.kt.

This was first introduced in #5759 due to a new test being added: RecentlyPlayedActivityTest. What's odd is that this was successfully checked in meaning that code coverage analysis passed incrementally, and the test file exemption check didn't trigger. It's unclear why there's a behavior discrepancy, but notably the test was put in the wrong package (it should be under home/recentlyplayed not home/). I would, however, have expected it to fail for both incremental and non-incremental checks.

Steps To Reproduce

Either try running code coverage for the specific RecentlyPlayedActivity or run the whole suite (I haven't verified either repro case).

Expected Behavior

Since there's a valid test, this issue should not be triggered.

Screenshots/Videos

No response

What device/emulator are you using?

No response

Which Android version is your device/emulator running?

No response

Which version of the Oppia Android app are you using?

No response

Additional Context

We need to understand why this failed in CI before we can be confident in a fix.

Metadata

Metadata

Assignees

Labels

Impact: HighHigh perceived user impact (breaks a critical feature or blocks a release).Work: HighIt's not clear what the solution is.bugEnd user-perceivable behaviors which are not desirable.

Type

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions