~/talk

Infection: How to Measure the Quality of Your Tests

TalkinItalianat phpday PUG Edition 2022 · on Monday, 2022-04-11· [testing]
links:none on file
slides:none on file

Shows how to measure PHP test quality using the Infection mutation-testing library (requires PHP ≥ 7.4). Demonstrates generating mutants and comparing them against the test suite, with concrete runs: 20 mutants → 9 killed/11 survived (MSI 45%), a microservice run with 775 mutants → 575 killed (MSI 74%), ~33s to run ~700 mutants, and how improving tests raises the MSI to 75%, 95%, then 100%. Also covers CI integration and how to exclude specific mutations.

AI-written summary · about

  1. 0:00Test quality intro
  2. 3:02Unit test types
  3. 8:43Test example and coverage
  4. 11:30Coverage metric limits
  5. 14:20Mutation testing defined
  6. 21:52Practical use with Infection
  7. 26:12Improve tests with mutants
  8. 29:26Decathlon results
  9. 31:32Mutation testing in CI/CD
  10. 32:16Tips for adoption
  11. 33:43Code vs test quality
  12. 34:47Thanks
~/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.