laravelio/laravel.io

Improve testing speed

driesvints opened this issue · 6 comments

For some reason, our test suite is super slow. We should look into this and try to decrease memory usage and speed it up.

Parallel run:

  Tests:    316 passed (785 assertions)
  Duration: 13.64s
  Parallel: 10 processes

Regular run:

  Tests:    316 passed (785 assertions)
  Duration: 96.30s

We got it to run much faster now with #1151 but we might want to investigate individual slow tests going forward with vendor/bin/pest --profile

For example, the password reset test takes 3 seconds? 🤔

Apologies not sure best way to link my PR: #1167 - Improves by 1/3, cheers

Thanks @Nathan-Cowin. Also a good improvement. Will leave this open to see if we can get it down even further eventually.

Another easy second here #1169