Specifying test .py files relative to pytest.ini file. #12993
Unanswered
julian-smith-artifex-com
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using
norecursedirsto exclude various subdirectories when pytest searches for test files.However there may be new subdirectories to exclude in future, so i'd prefer to anchor
python_filesat the root of my project (or at the directory containing pytest.ini) so that it will always work without me having to add new exclusions.Is this possible?
For example a syntax like
python_files = ^tests/test_*.pywould be really helpful.Thanks for any suggestions.
[BTW i've tried
testspathsandtestpaths, but they don't seem to avoid the need fornorecursedirs.Beta Was this translation helpful? Give feedback.
All reactions