laravelio / laravel.io

The Laravel.io Community Portal.
https://laravel.io
MIT License
2.44k stars 655 forks source link

Improve testing speed #986

Open driesvints opened 10 months ago

driesvints commented 10 months ago

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
driesvints commented 1 month ago

We got it to run much faster now with https://github.com/laravelio/laravel.io/pull/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? 🤔

Nathan-Cowin commented 2 weeks ago

Apologies not sure best way to link my PR: https://github.com/laravelio/laravel.io/pull/1167 - Improves by 1/3, cheers

driesvints commented 2 weeks ago

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

Nathan-Cowin commented 2 weeks ago

Another easy second here #1169