on-internet
← Community

Pytest running very slow for project

Stack Overflow ·

My pytest setup is running very slow, especially during collection phase. So I have put up a pytest setup for my Django project, and each Django app's test-files are located in its own folder, i.e., the tree looks as follows root | +--a | | | +--tests | | | +--conftest.py | +--testAa.py | +--testBa.py +--b | | | +--tests | | | +--conftest.py | +--testAb.py | +--testBb.py ... pytest.ini The pytest.ini file specifies where to look for the tests and has the following content [pytest] DJANGO_SETTINGS_MODULE = project.project.settings.test python_files = tests.py test_*.py *_tests.py addopts = --re

Comments

Sign in or sign up to comment and upvote.

No comments yet.