Skip to content

Allow numeric value for stopOnDefect,... #6459

@kkmuffme

Description

@kkmuffme

https://docs.phpunit.de/en/12.5/configuration.html#the-stopondefect-attribute and others that have

after the first error.

It would be great if these would also allow numeric (int<1, max>) values.
Especially for tests that are PHP version specific/dependent (e.g. PHP 8.4->8.5) or dependent on an external library will often result in 100s of issues after an update (that mostly have the same reason though, but that's irrelevant here) which result in lots of wasted CI time if stopOnDefect is not set.
However if it is set, it's wasting tons of build time when it just stops at the first error.

I'd like to be able to specify a reasonable number (e.g. 5 or 10), so it stops after the first 5 errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions