Show known environment variables in py.test --help

This commit is contained in:
Bruno Oliveira 2015-09-28 18:34:16 -03:00
parent 5f860181b6
commit b184f391c6
1 changed files with 12 additions and 2 deletions

View File

@ -80,8 +80,18 @@ def showhelp(config):
line = " %-24s %s" %(spec, help) line = " %-24s %s" %(spec, help)
tw.line(line[:tw.fullwidth]) tw.line(line[:tw.fullwidth])
tw.line() ; tw.line() tw.line()
#tw.sep("=") tw.line("environment variables:")
vars = [
("PYTEST_ADDOPTS", "extra command line options"),
("PYTEST_PLUGINS", "comma-separated plugins to load during startup"),
("PYTEST_DEBUG", "set to enable debug tracing of pytest's internals")
]
for name, help in vars:
tw.line(" %-24s %s" % (name, help))
tw.line()
tw.line()
tw.line("to see available markers type: py.test --markers") tw.line("to see available markers type: py.test --markers")
tw.line("to see available fixtures type: py.test --fixtures") tw.line("to see available fixtures type: py.test --fixtures")
tw.line("(shown according to specified file_or_dir or current dir " tw.line("(shown according to specified file_or_dir or current dir "