I tried to use the norecursedirs
option inside setup.cfg to tell py.test not to collect tests from certain directories but it seems it does ignore it.
[tool:pytest]
norecursedirs=lib/third
When I run py.test
I do see how it does get tests from inside lib/third
!
py.test
andpytest
both of them runnings tests and being different beasts. Strange butpytest
is the one failing because it does not load the exclusions from[pytest]
. – Advocatepytest
is from logilab. You wantpy.test
. – Strangleholdnosecuredirs=lib/third/*
– Endres[pytest] norecursedirs = resources
inpytest.ini
does a trick!💪 – Donpytest
instead ofpy.test
– Zillah