johnkary / phpunit-speedtrap

Reports on slow-running tests in your PHPUnit test suite
MIT License
782 stars 60 forks source link

Disabling Tests #84

Closed MGatner closed 3 years ago

MGatner commented 3 years ago

This PR adds the option to disable individual tests by setting the @slowThreshold annotation to 0.

This was referenced in a few other issues and something I would use a lot. I think this is the cleanest approach but let me know if you would prefer an alternate annotation, like @disableThreshold.

johnkary commented 3 years ago

@MGatner Thanks for this PR!

The PR as proposed doesn't quite work as intended, but it's an easy fix after I merge this. See inline comment above.

This feature will be included in the next major release v4.0. It's very close to being tagged.