Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest_suite_timeout-0.0.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

pytest_suite_timeout-0.0.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file pytest_suite_timeout-0.0.1.tar.gz.

File metadata

  • Download URL: pytest_suite_timeout-0.0.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for pytest_suite_timeout-0.0.1.tar.gz
Algorithm Hash digest
SHA256 713e73077eaf9807b041ea35f371f1910acf26e2abd3164c1043f13fdde59828
MD5 8d679967dcfd0db6e2c867052bd64b7a
BLAKE2b-256 4ed90891a62dc9c1e3c3d6c2b808baa56aa003b379ed115d8ae110035472b39d

See more details on using hashes here.

File details

Details for the file pytest_suite_timeout-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_suite_timeout-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d70ae9ee52d16024e0473e29c9b97398b8433ff8c3a1b3873dc3cf963b7202ed
MD5 3a368476073d0c45be9d28b099424df4
BLAKE2b-256 bab5d8a9883ea7101ef7a22923843f12e8b5833b27e5baca8025b1769bb21a05

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page