Laravel 10 will include a profile option to find slow tests
Published on by Eric L. Barnes
Having a slow test suite can be frustrating. Sitting around for 30 seconds or more every time you want to run your tests is not fun. To help combat this, a new feature coming to Laravel 10 is a --profile
option that will make it easy for you to find any slow tests in your application.
Below is an example of the output as shared by nuno maduro:
This --profile
option should help keep your tests fast and help you either fix the slow tests or to better group them to make it easier not to run them all the time.
Eric is the creator of Laravel News and has been covering Laravel since 2012.