-
Notifications
You must be signed in to change notification settings - Fork 71
Fix of codecov components paths #1245
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
Conversation
71e2474 to
9ae6bd9
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. ❌ Your project status has failed because the head coverage (72.45%) is below the target coverage (75.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## master #1245 +/- ##
==========================================
+ Coverage 71.96% 72.45% +0.49%
==========================================
Files 293 293
Lines 25189 25185 -4
Branches 3528 3527 -1
==========================================
+ Hits 18127 18249 +122
+ Misses 5575 5444 -131
- Partials 1487 1492 +5
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
Coverage split is working ! Go here and use the components dropdown to filter by them. |
9f14d87 to
8d3ebbc
Compare
|
Also I just noticed that the numbers for the unittest in other files are good, but the numbers for the smoke test are the same as the total coverage from both. If it can help you: Here are the numbers that I noted a few months ago for:
|
| - name: Run unit tests | ||
| run: | | ||
| uv run --active pytest src/scilpy --cov-report term-missing:skip-covered --dist=loadgroup --ignore=src/scilpy/cli | ||
| mv .test_reports unit_test_reports |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe the reason that smoke tests have the total coverage is that here you don't do mv .coverage .coverage.unit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, the coverage report is also written in the .test_reports folder, so we only need to upload its content to coverage and it's sufficient.
I'm looking into the reports right now to find why we get those new numbers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Percentages seems good now ! I removed --cov-append in pytest.ini and it fixed it. It was using the default .coverage file that's created at the root of the repo by the unit tests run to seed the coverage report for smoke tests.
8d3ebbc to
62cb5ba
Compare
EmmaRenauld
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm really happy that this is done!
arnaudbore
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GTG


Quick description
The regex for the library component is not working, the resulting coverage component is just empty.
...
Type of change
Check the relevant options.
Provide data, screenshots, command line to test (if relevant)
We'll see on the coverage report that will be uploaded for this PR if it works or not
Checklist