2009-03-02 19:14:59 +08:00
|
|
|
Test configuration
|
|
|
|
========================
|
|
|
|
|
2009-03-22 08:38:43 +08:00
|
|
|
test options and values
|
|
|
|
-----------------------------
|
2009-03-02 19:22:11 +08:00
|
|
|
|
2009-03-22 08:38:43 +08:00
|
|
|
You can see all available command line options by running::
|
2009-03-02 19:22:11 +08:00
|
|
|
|
2009-03-22 08:38:43 +08:00
|
|
|
py.test -h
|
2009-03-02 19:14:59 +08:00
|
|
|
|
2009-03-22 08:38:43 +08:00
|
|
|
py.test will lookup values of options in this order:
|
2009-03-02 19:14:59 +08:00
|
|
|
|
|
|
|
* option value supplied at command line
|
|
|
|
* content of environment variable ``PYTEST_OPTION_NAME=...``
|
|
|
|
* ``name = ...`` setting in the nearest ``conftest.py`` file.
|
|
|
|
|
2009-03-22 08:38:43 +08:00
|
|
|
The name of an option usually is the one you find
|
|
|
|
in the longform of the option, i.e. the name
|
|
|
|
behind the ``--`` double-dash.
|
|
|
|
|
|
|
|
IOW, you can set default values for options per project, per
|
|
|
|
home-directoray, per shell session or per test-run.
|
|
|
|
|