pytest-dev / py

Python development support library (note: maintenance only)
MIT License
69 stars 105 forks source link

Allow --tb command line argument to be configured via an environment variables #56

Closed pytestbot closed 8 years ago

pytestbot commented 8 years ago

We are running jobs on an instance of Jenkins and we want to make the command line argument --tb=short be the default for all of our jobs. We can do this, without editing each individual job, but setting a global environment variable instead, but py would need to be able to use that environment variable to configure the value.

Is this an enhancement that would be considered and/or welcome as a patch?

pytestbot commented 8 years ago

Original comment by @flub

Thanks for the nice pull request

pytestbot commented 8 years ago

Original comment by @davehunt

I've submitted a pull request here: https://bitbucket.org/hpk42/pytest/pull-request/241/support-setting-configuration-using-the

pytestbot commented 8 years ago

Original comment by @hpk42

adding a "PYTEST_ADDOPTS" (analogoues to the ini-file option) should help in your case and doing an according PR would be welcome i think.