Skip to content

Fix: CodeCoverage report does not generated when ui tests are running under Test Orchestrator #118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

k4k7us23
Copy link
Contributor

@k4k7us23 k4k7us23 commented Jul 2, 2025

Changes description

  • This PR fixes code coverage report generation, when ui tests are running under Test Orchestrator
  • The issue is fixed both for connected devices and for gradle managed devices
  • Due to the fix, configuration "connected-device-clear-package-data.yaml" was unignored
  • A new test configuration for gradle managed devices under Test Orchestrator was added (gradle-managed-device-clear-package-data.yaml)

Fix explanation

  • It turns out, that when tests are executed under Test Orchestrator, each test will produce it's own "*.ec" file with specific name. Please, see the screenshoot below, for better understanding
  • orchestrator
  • That is why, I have added generic build folder patterns to getExecutionDataFileTree() function

Copy link

codecov bot commented Jul 2, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.23%. Comparing base (dc9f71c) to head (f1f4870).

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #118      +/-   ##
============================================
+ Coverage     86.06%   86.23%   +0.16%     
  Complexity       59       59              
============================================
  Files             8        8              
  Lines           244      247       +3     
  Branches         21       21              
============================================
+ Hits            210      213       +3     
  Misses           13       13              
  Partials         21       21              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant