~/talk

How Can I Trust My Test Suite?

TalkinItalianat phpday PUG Edition 2021 · on Thursday, 2021-03-18· [testing, php]
slides:none on file

The talk explains how code coverage alone is insufficient and shows concrete metrics and tools to assess test quality: cyclomatic complexity, the CRAP index, and a churn metric to locate risky PHP files, plus mutation testing using Infection on top of PHPUnit. It demonstrates interpretation of mutation results (e.g., 5 mutants, 4 killed → 80% mutation score; adding a boundary test yields 100%), and recommends practices: frequent small deploys, failing CI when mutation score falls below a threshold, and running Infection targeted at changed code.

AI-written summary · about

  1. 0:00Trust in test suites
  2. 2:15Coverage isn't enough
  3. 5:05Sherlock Code's coverage
  4. 9:23Cyclomatic complexity & CRAP
  5. 14:04Change Risk Analysis
  6. 18:16Mutation testing
  7. 22:37Infection PHP tool
  8. 30:56Tool limits & practice
  9. 33:42Test priorities
  10. 36:16Q&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.