Is there a way to set globally (either in setup.cfg on in a command-line option) the maximum duration per test? Right now I haven't come across one in the documentation.
Original comment by Floris Bruynooghe (Bitbucket: flub, GitHub: flub).
Simply run pytest --timeout=5 for a global timeout of 5s. You can also set timeout = 5 in the [pytest] section of the ini file as well as the PYTEST_TIMEOUT environment variable. All of this is the README and the --help output.
Original report by Flavian Hautboisa (Bitbucket: TraxAir, ).
Is there a way to set globally (either in setup.cfg on in a command-line option) the maximum duration per test? Right now I haven't come across one in the documentation.