We have dozens of CI jobs and rather than add a configuration file or command line option to all of them, it would be great if we could just set an environment variable such as PYTEST_TIMEOUT to set the timeout globally.
Original comment by Dave Hunt (Bitbucket: davehunt, GitHub: davehunt).
I think environment could safely be the lowest priority. You could also have PYTEST_TIMEOUT_METHOD but seeing as there's a suitable default value I think it can be omitted.
Original report by Dave Hunt (Bitbucket: davehunt, GitHub: davehunt).
We have dozens of CI jobs and rather than add a configuration file or command line option to all of them, it would be great if we could just set an environment variable such as PYTEST_TIMEOUT to set the timeout globally.