Skip to content

SYN-10396: pytest plugin to map tests to source coverage#4792

Open
MichaelSquires wants to merge 2 commits intomasterfrom
blackout/SYN-10396/test-coverage-map
Open

SYN-10396: pytest plugin to map tests to source coverage#4792
MichaelSquires wants to merge 2 commits intomasterfrom
blackout/SYN-10396/test-coverage-map

Conversation

@MichaelSquires
Copy link
Contributor

No description provided.

SYN_REGRESSION_REPO: ~/git/synapse-regression
COVERAGE_FILE: test-reports/<< pipeline.git.revision >>/.coverage
COVERAGE_ARGS: --cov synapse --cov-append
COVERAGE_ARGS: --cov synapse --cov-append -p synapse.utils.testcov --testcov=test-reports/testcov.json
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this end up somewhere that a later run would be able to retrieve it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's currently saved as a CI artifact. We talked about an artifact server earlier but that doesn't exist yet. Do you have any suggestions on where to store it? Maybe a goback?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the meantime, you can download it using a browser or curl from CI artifacts.

@codecov
Copy link

codecov bot commented Mar 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.73%. Comparing base (138083d) to head (b767f0e).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4792   +/-   ##
=======================================
  Coverage   97.73%   97.73%           
=======================================
  Files         298      300    +2     
  Lines       62409    62503   +94     
=======================================
+ Hits        60995    61088   +93     
- Misses       1414     1415    +1     
Flag Coverage Δ
linux 97.65% <93.61%> (-0.01%) ⬇️
linux_replay 93.42% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

@MichaelSquires MichaelSquires marked this pull request as ready for review March 12, 2026 19:42
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.

2 participants