зеркало из https://github.com/mozilla/treeherder.git
Bug 1370279 - Improve pytest test collection performance
Before this change running pytest with no arguments took 51 seconds to just collect the list of tests to run (`pytest --collect-only`), since the entire source directory was scanned (including the 18,000 files in `node_modules`). Now it takes only 3.7 seconds.
This commit is contained in:
Родитель
64583c1924
Коммит
de0f8d7f47
|
@ -28,7 +28,8 @@ line_length = 140
|
|||
known_first_party = tests
|
||||
|
||||
[tool:pytest]
|
||||
norecursedirs = jenkins
|
||||
testpaths = tests
|
||||
norecursedirs = __pycache__ jenkins ui
|
||||
DJANGO_SETTINGS_MODULE=tests.settings
|
||||
markers =
|
||||
slow: mark a test as slow.
|
||||
|
|
Загрузка…
Ссылка в новой задаче