Added documentation for PYTEST_ADDOPTS environment variable, updated CHANGELOG and AUTHORS.

--HG--
branch : env-addopts
This commit is contained in:
Dave Hunt 2015-02-09 14:11:54 +00:00
parent 912c8f0540
commit d1adbf4a5c
3 changed files with 8 additions and 0 deletions

View File

@ -46,3 +46,4 @@ Trevor Bekolay
David Mohr
Nicolas Delaby
Tom Viner
Dave Hunt

View File

@ -1,6 +1,8 @@
2.7.0.dev (compared to 2.6.4)
-----------------------------
- add ability to set command line options by environment variable PYTEST_ADDOPTS.
- fix issue655: work around different ways that cause python2/3
to leak sys.exc_info into fixtures/tests causing failures in 3rd party code

View File

@ -60,6 +60,11 @@ progress output, you can write it into a configuration file::
[pytest]
addopts = -rsxX -q
Alternatively, you can set a PYTEST_ADDOPTS environment variable to add command
line options while the environment is in use::
export PYTEST_ADDOPTS="-rsxX -q"
From now on, running ``pytest`` will add the specified options.
Builtin configuration file options