-
Notifications
You must be signed in to change notification settings - Fork 264
Closed
Labels
Type: TestingAnything related to testingAnything related to testing
Description
To identify long-running tests during CI, it would be helpful for overly long-running tests to report their duration. This could be achieved by:
- Add a timeout with
pytest-timeout, so that tests that take longer than a certain (relatively generous) duration would simply be killed. Long-running tests would then be reported as failed. - Add a pytest hook to report duration after each test. Something like this.
As noted by @jklaise , with option 2. a minimum duration threshold would be required to avoid cluttering the output.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type: TestingAnything related to testingAnything related to testing