Add tests for pathtools.listdir_matching#122
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## devel #122 +/- ##
====================================
+ Coverage 25% 29% +4%
====================================
Files 25 25
Lines 1756 1761 +5
====================================
+ Hits 439 514 +75
+ Misses 1317 1247 -70 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
listdir_matching
|
As indicated by codecov, there are still quite some paths in the function that are not covered by tests: https://app.codecov.io/gh/imcf/python-imcflibs/pull/122/blob/src/imcflibs/pathtools.py#L223 To me, the level of complexity / conditional nesting / ... of |
|
Is it possible to also cover the https://app.codecov.io/gh/imcf/python-imcflibs/pull/122/blob/src/imcflibs/pathtools.py#L234 |
|
How do I ask Codecov to check now ? I have pushed but don't see anything : https://app.codecov.io/gh/imcf/python-imcflibs/pull/122 |
Good question. I don't fully understand why it's not happening automatically. Codecov seems to be complaining with Unable to compare commits because the head commit did not upload a coverage report, will need to dig into that 👷🏼 |
|
I'm not entirely certain if this is not a bug. Renewed the Codecov token now (which was still valid) and merged |
listdir_matchingpathtools.listdir_matching
9dae485 to
fad0e28
Compare
|
Reverted the |
|
Okay, I think by now I have identified the underlying issue with Codecov. Codecov reports are being generated (and uploaded to Codecov) by the Pytest-Poetry 🧪🎭 action, but until 5f21448 the action was only triggered by pushes to With the commit mentioned above, the tests will also run for pushes to |
|
Suggestion: I'll try to rebase (waaaaaah! reeeebaaaase! 🤯 💥 👻 🫨 😱) the commits in this PR onto current I'll keep the original PR in a separate branch around, just to be safe. 🎁 Bonus: it'll give you the opportunity to fix the committer address of your last two commits as they're currently done as |
* Implement tests for non-recursive and recursive matching. * Validate fullpath and regex matching functionality. * Ensure correct sorting behavior for file names.
* Implement test for invalid regex returning an empty list. * Add test for recursive regex matching that verifies absolute paths.
fad0e28 to
0be95a9
Compare
|
💥 (done ✅) |
While the commits in this PR now push the coverage by more than 50% 🚀 to a total of almost 95% 🥳 🎉 , the |
|
🚨 @lguerard please make sure to |
…size, join_files_with_channel_suffix, and create_directory functions
0be95a9 to
ce25066
Compare
This covers both recursive and non-recursive scenarios.
|
Now 100% for this file 🥳 |
Fix #119