~/talk

Christoph Rumpel :: Managing 5000+ Tests Efficiently

Talkat Laracon EU 2024 · 2024-02-05..02-06· [laravel, testing]
slides:none on file

A Laravel codebase with 5,370 tests and ~20k assertions shrinks from a 50‑minute local run to about 5 minutes on a 10‑core MacBook Pro by profiling with Pest, fixing heavy setup methods and a slow user factory, switching to transactions/MySQL plus a test‑prepare step, introducing parallel testing (parallel hooks and cache key prefixes), splitting CI across GitHub Actions, and planning a dumped SQL schema import to avoid 660 migrations. Issues include flaky parallelism and runner CPU limits.

AI-written summary · about

  1. 0:00Zero to 5000 tests
  2. 5:20Introducing the 5000 test monster
  3. 7:51GitHub Actions test chunks
  4. 12:23Finding slow tests with Pest
  5. 17:30Parallel testing challenges
  6. 21:50Parallel testing working
  7. 23:12Optimizing migrations and setup
  8. 24:35Key takeaways for large suites
  9. 25:59Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.