The Lie of Fixtures: Script Rather Than Generate
summary
The talk explains moving from disposable test fixtures to versioned YAML scenarios that describe who does what and when for a multi-role Symfony platform. It shows using SymfonyClock to freeze time at each action and reusing real domain services to replay scenarios so the application validates its own data, turning scenarios into live documentation shared with QA and product owners.
AI-written summary · about
chapters (17)
- 0:00Fixtures and test challenges
- 2:50Project context and stack
- 6:01Fixtures and limitations
- 7:23Realistic business objects
- 10:13Geographic data population
- 11:56Compliant users generation
- 12:59Complete request building
- 15:47File attachments handling
- 17:54Workflow and state transitions
- 23:10Freezing time for tests
- 26:01Fixtures to test scenarios
- 31:16Simplifying YAML scenarios
- 33:27Automated test coverage
- 37:22Testing and development impact
- 40:35Large dataset generation
- 41:19Collaborative test creation
- 41:40Q&A
