edmondscommerce / phpqa

A PHP Quality Assurance pipeline designed to be run locally and in CI. Written in Bash.
MIT License
6 stars 2 forks source link

Time limits on small and medium tests #38

Closed edmondscommerce closed 6 years ago

edmondscommerce commented 6 years ago

PHPUnit has the concept of small,medium and large built in

It can enforce time limits on these tests

tests are regarded as small by default (so have a 1 second time limit)

To be a medium (5 seconds) or large test, you have to include an annotation @medium or @large

We now have a tool to check your tests/Medium and tests/Large folders to make sure you are doing this annotation