test_ok1/py/doc/test-config.txt

29 lines
912 B
Plaintext

Test configuration
========================
using / specifying plugins
-------------------------------
you can instruct py.test to use additional plugins by:
* setting the PYTEST_PLUGINS environment variable
to a comma-separated list of plugins
* XXX supplying "--plugins=NAME1,NAME2,..." at the command line
* setting "pytest_plugins='name1', 'name2'" in
``conftest.py`` files or in python test modules.
py.test will load all plugins along with their dependencies
(plugins may specify "pytest_plugins" as well).
test option values
-----------------------------
py.test will lookup the value of an option "NAME" in this order:
* option value supplied at command line
* content of environment variable ``PYTEST_OPTION_NAME=...``
* ``name = ...`` setting in the nearest ``conftest.py`` file.
This means that you can specify default options per-run,
per shell session or per project directory.