-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pytest not finding any tests under module #1978
Comments
Hi, That's strange, it should be picking up the tests. Could you please show the contents of your |
See http://doc.pytest.org/en/latest/customize.html#confval-norecursedirs @grantmcconnaughey you can override this with a [pytest]
norecursedirs = .* dist CVS _darcs {arch} *.egg |
@tomviner Thank you, that fixed it! |
I am working on a Django 1.9 application. When I run
pytest
it picks up tests in all the directories except thebuild
directory. Thebuild
directory has atests
directory just like all of the other modules. Inside oftests
istest_models.py
,test_utils.py
, andtest_views.py
.When I run
pytest myapp/apps/build/
then it picks up the tests just fine. But when I simply runpytest
(orpytest myapp/apps/
) then the build directory is completely excluded.myapp.apps.build
is in myINSTALLED_APPS
setting, so that is not the issue. I've tried removing the__init__.py
file from thebuild/tests/
and that did not work. Is the name "build" reserved to pytest or something?Here is the output:
Here is my project structure. I've truncated all of the apps except build.
The text was updated successfully, but these errors were encountered: