Repository navigation
Include static prerequisites when selecting dependent tests with -k - #285
Merged
mrbean-bremen merged 3 commits intoDec 3, 2026
Merged
mrbean-bremen merged 3 commits into
mrbean-bremen merged 3 commits into
Conversation
mrbean-bremen
force-pushed
the
codex/dec03-select-dependencies
branch
from
December 3, 2026 18:43
974afa2 to
c50be01
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #285 +/- ##
==========================================
- Coverage 98.09% 97.69% -0.40%
==========================================
Files 5 6 +1
Lines 681 781 +100
Branches 144 167 +23
==========================================
+ Hits 668 763 +95
- Misses 4 8 +4
- Partials 9 10 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
mrbean-bremen
approved these changes
Dec 3, 2026
mrbean-bremen
left a comment
Member
There was a problem hiding this comment.
Thanks, that looks good!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Selecting a dependency-marked test with
-kcurrently leaves its prerequisites deselected, so pytest-dependency skips the selected test. This adds--order-include-dependencies, used with--order-dependencies, to include collected static prerequisites and their transitive dependencies. Default selection stays unchanged.Addresses #64. Names, scopes and parameterized dependency labels follow pytest-dependency.
-m,--deselectand the collected paths remain boundaries; runtimedepends()calls and order-only markers do not expand selection. The deprecated pytest 6expr:suffix filter produces an explicit usage error with the new option because adding earlier prerequisites changes its meaning; normal keyword expressions and legacy negative syntax work.Validation:
Checks ran locally on macOS ARM64; Linux, Windows and Python 3.9 were not run. The existing Python metadata is unchanged.
AI assistance was used for implementation and testing. A separate coding agent reviewed the final diff and exercised the CLI independently.