Skip to content

Optionally fail tests if slow #676

@morgan-atproperties

Description

@morgan-atproperties

It would be great if there was an option to fail tests or the entire suite if at least one test is too slow. Printing out a list of slow tests isn't imperative enough for us.

We have implemented this preliminary in CI (currently using PHPUnit 9.5) by capturing and parsing the text output of PHPUnit, but it would be better if slow tests could affect the exit code. Is there a way to do this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions