From 7765dda208b3801931d3e87621d2bdcfde502ba7 Mon Sep 17 00:00:00 2001 From: hpk Date: Mon, 2 Mar 2009 12:22:11 +0100 Subject: [PATCH] [svn r62352] add a note about how to specify plugins --HG-- branch : trunk --- py/doc/test-config.txt | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/py/doc/test-config.txt b/py/doc/test-config.txt index 9bde7f910..fad9254b4 100644 --- a/py/doc/test-config.txt +++ b/py/doc/test-config.txt @@ -1,7 +1,20 @@ - Test configuration ======================== +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 -----------------------------