Dockerize your unit tests for faster feedback
summary
Splits a 10K+ tests suite into module groups and runs them in parallel inside Docker micro instances using phpunit and GNU parallel, dropping end-to-end time from ~4s to about 2.6s in the demo. Captures container exit codes to report failures, avoids host-mounted logs for lower latency, and supports testing against multiple PHP versions. Provides a scriptable workflow suitable for pre-commit hooks and local fast-feedback before CI.
AI-written summary · about
chapters (9)
- 0:00Start
- 9:10System Failures
- 11:30What Docker Is
- 12:33How Is Docker Used
- 19:43Execute php Unit Using Docker
- 32:09Pre-Commit Hook
- 33:22Why Do We Use Parallel
- 37:58Integration Test
- 40:00Add Group Annotation
related talks
40mMy Symfony functional testing toolbox
34mTest Environments Management with
49mDocker & PHP development and deployment
01h 03mOptimizing Your Test Suite
51mDoes Your Code Measure Up?
24mHow to build a test suite from scratch
52mDocker: Multi-Stage and Multi-Environment -php2019
58mSpeed up your test suite by throwing computers at it
