forked from p34709852/monkey
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:
parent
c37ae1e0ea
commit
3f66e95a90
|
@ -19,6 +19,5 @@ log_cli = 1
|
|||
log_cli_level = "DEBUG"
|
||||
log_cli_format = "%(asctime)s [%(levelname)s] %(module)s.%(funcName)s.%(lineno)d: %(message)s"
|
||||
log_cli_date_format = "%H:%M:%S"
|
||||
addopts = "-v --capture=sys"
|
||||
addopts = "-v --capture=sys tests"
|
||||
norecursedirs = "node_modules dist"
|
||||
testpaths = "monkey/tests"
|
||||
|
|
Loading…
Reference in New Issue