~/talk

Optimizing Your Test Suite

Talkat PHP fwdays'21 conference · 2021-09-02..09-10· [testing, developer-experience]
slides:none on file

Claims concrete fixes: speed, feedback, readability and organization for PHPUnit suites. Concrete tools and practices: FIRST properties, Arrange Act Assert, setup/data providers, testdocs output, covers annotation, test grouping and patch analysis via php cov and Codecov. Measured costs: a fast suite runs in ~26s; enabling pcov raises that to ~168s and memory to ~3GB versus ~87MB; Xdebug 3 shows ~234s. Examples include a GitHub raytracer project and real coverage reports.

AI-written summary · about

  1. 0:00Intro
  2. 3:04Guiding Questions
  3. 3:36First Properties
  4. 6:50Triple A of Testing
  5. 12:09DRY
  6. 21:33Dry vs Wet
  7. 25:31Executable Specification
  8. 30:17Test Docs Annotation
  9. 31:36Code Coverage
  10. 34:05Covers Annotation
  11. 39:42Patch Coverage
  12. 42:40Risky Tests
  13. 44:58Organization
  14. 45:52Group annotation
  15. 47:19Wrap up
  16. 49:57Questions
~/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.