-
Notifications
You must be signed in to change notification settings - Fork 155
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
Move tests out of package #1459
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1459 +/- ##
==========================================
+ Coverage 84.22% 84.25% +0.03%
==========================================
Files 35 35
Lines 5685 5685
==========================================
+ Hits 4788 4790 +2
+ Misses 897 895 -2 |
What's up with the coverage? |
|
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.
More specifically, the coverage is different here due to the changes to filterwarnings
in the pyproject.toml
. I significantly prefer being able to run tests in parallel (which I believe isn't really possible with coverage
) locally over specifying warnings to filter by class in the pyproject.toml
.
I've made a suggestion which still allows parallel testing and coverage collection.
OK, I think this looks good. It’s blocked on scverse/scanpy#2993, which is in turn blocked on pytest’s 8.2 release (pytest-dev/pytest#12213). /edit: unblocked: Pytest 8.2 is released |
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 still get CoverageWarning: Module anndata was previously imported, but not measured (module-not-measured)
locally. Is this intentional or expected? Should we catch it?
Otherwise I was able to run the tests locally, in parallel, getting a codecov report that has non-zero line-rate
for the various submodules. Is there a tool for visualizing this xml? I couldn't find anything
You can use Seems like somehow this PR increases coverage very very slightly?
No clue why that would be. Maybe something to do with running stuff parallel. Are you sure that warning is new? As said, ba3c054 fixed the issue that resulted in The only reason coverage is relevant to reviewing this PR is because it caused me to add |
I am seeing it in parallel, but can't find the issue about it which I saw earlier so am not 100% sure if that's expected. My coverage looks good in parallel and similar to the one not in parallel, with the only coverage change being the test helpers. So to me, this PR seems fine. |
(cherry picked from commit b3763f8)
To be determined if done now or later:
conftest
withtesting.anndata._pytest
(or so) private pytest pluginTo do later
testing.anndata