A pytest plugin for ensuring max suite time
Project description
pytest-suite-timeout
A pytest plugin for ensuring max suite time.
Really though, it's: if the timeout expires, no new tests are started.
Installation
From PyPI:
$ pip install pytest-suite-timeout
Usage
Specify the max suite time with --suite-timeout
, in minutes (float).
Example of max 1.5 minutes:
$ pytest --suite-timeout=1.5
Defaults to no timeout
If you don't pass in --suite-timeout
, nothing happens.
Timeout behavior
Timeout is done between tests.
If a timeout is noticed, pytest.exit()
is called, stopping all further testing.
Contributing
Contributions are welcome. Tests can be run with tox. Test coverage is now 100%. Please make sure to keep it at 100%. If you have an awesome pull request and need help with getting coverage back up, let me know.
License
Distributed under the terms of the MIT license, "pytest-suite-timeout" is free and open source software
Issues
If you encounter any problems, please file an issue along with a detailed description.
Changelog
See changelog.md
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pytest_suite_timeout-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 713e73077eaf9807b041ea35f371f1910acf26e2abd3164c1043f13fdde59828 |
|
MD5 | 8d679967dcfd0db6e2c867052bd64b7a |
|
BLAKE2b-256 | 4ed90891a62dc9c1e3c3d6c2b808baa56aa003b379ed115d8ae110035472b39d |
Hashes for pytest_suite_timeout-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d70ae9ee52d16024e0473e29c9b97398b8433ff8c3a1b3873dc3cf963b7202ed |
|
MD5 | 3a368476073d0c45be9d28b099424df4 |
|
BLAKE2b-256 | bab5d8a9883ea7101ef7a22923843f12e8b5833b27e5baca8025b1769bb21a05 |