{"library":"pytest-suite-timeout","title":"pytest-suite-timeout","description":"A pytest plugin that enforces a maximum execution time for the entire test suite, preventing runaway test runs. Version 0.1.0. Release cadence unknown (new library).","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install pytest-suite-timeout"],"cli":null},"imports":["from pytest_suite_timeout import SuiteTimeoutPlugin"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"# conftest.py\nimport pytest\n\ndef pytest_addoption(parser):\n    parser.addoption('--suite-timeout', action='store', default=None, type=int,\n                     help='Maximum suite execution time in seconds')\n\ndef pytest_configure(config):\n    timeout = config.getoption('--suite-timeout')\n    if timeout:\n        from pytest_suite_timeout import SuiteTimeoutPlugin\n        config.pluginmanager.register(SuiteTimeoutPlugin(timeout))\n\n# Then run: pytest --suite-timeout=300","lang":"python","description":"Install and register the plugin via conftest.py or pytest.ini.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}