Skip to content

Fix testpaths for newer pytest versions - #343

Merged
blink1073 merged 1 commit into
Calysto:mainfrom
ellert:testpaths-parent
Mar 5, 2026
Merged

blink1073 merged 1 commit into
Calysto:mainfrom
ellert:testpaths-parent

Conversation

@ellert

@ellert ellert commented Mar 5, 2026

Copy link
Copy Markdown
Contributor

See: testpaths = A A/B doesn't test folder A
pytest-dev/pytest#12605

Search is recursive, so in ["tests", "tests/magics"], the latter is redundant and can be removed. It is even harmful since in newer pytest versions parent directories of paths in testpaths are excluded, so listing "tests/magics" excludes the tests in "tests", and only the tests in "tests/magics" are run even though "tests" is listed in testpaths.

See: testpaths = A A/B doesn't test folder A
pytest-dev/pytest#12605

Search is recursive, so in ["tests", "tests/magics"], the latter is
redundant and can be removed. It is even harmful since in newer pytest
versions parent directories of paths in testpaths are excluded, so
listing "tests/magics" excludes the tests in "tests", and only the
tests in "tests/magics" are run even though "tests" is listed in
testpaths.
@codecov-commenter

codecov-commenter commented Mar 5, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.94%. Comparing base (003c413) to head (6a607ef).
⚠️ Report is 127 commits behind head on main.

❌ Your project status has failed because the head coverage (85.94%) is below the target coverage (90.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #343   +/-   ##
=======================================
  Coverage   85.94%   85.94%           
=======================================
  Files          51       51           
  Lines        2824     2824           
  Branches      395      395           
=======================================
  Hits         2427     2427           
  Misses        277      277           
  Partials      120      120           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@blink1073 blink1073 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!

@blink1073
blink1073 merged commit 26029d0 into Calysto:main Mar 5, 2026
21 of 22 checks passed
@ellert
ellert deleted the testpaths-parent branch March 6, 2026 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants