Use addopts instead of testpaths to specify path in pytest config

The pytest documentation states that the testpaths configuration option
"Sets list of directories that should be searched ... when executing
pytest from the rootdir directory." Since pytest is not executed from
the rootdir directory, testpaths has no effect. Appending the "tests/"
directory to the end of addopts reduces the time required to run the
test suite by approximately 6 seconds.
This commit is contained in:
Mike Salvatore 2021-04-19 14:39:39 -04:00
parent c37ae1e0ea
commit 3f66e95a90
1 changed files with 1 additions and 2 deletions

View File

@ -19,6 +19,5 @@ log_cli = 1
log_cli_level = "DEBUG" log_cli_level = "DEBUG"
log_cli_format = "%(asctime)s [%(levelname)s] %(module)s.%(funcName)s.%(lineno)d: %(message)s" log_cli_format = "%(asctime)s [%(levelname)s] %(module)s.%(funcName)s.%(lineno)d: %(message)s"
log_cli_date_format = "%H:%M:%S" log_cli_date_format = "%H:%M:%S"
addopts = "-v --capture=sys" addopts = "-v --capture=sys tests"
norecursedirs = "node_modules dist" norecursedirs = "node_modules dist"
testpaths = "monkey/tests"