Optimizing Your Test Suite
summary
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
chapters (16)
- 0:00Intro
- 3:04Guiding Questions
- 3:36First Properties
- 6:50Triple A of Testing
- 12:09DRY
- 21:33Dry vs Wet
- 25:31Executable Specification
- 30:17Test Docs Annotation
- 31:36Code Coverage
- 34:05Covers Annotation
- 39:42Patch Coverage
- 42:40Risky Tests
- 44:58Organization
- 45:52Group annotation
- 47:19Wrap up
- 49:57Questions








