# Architecting for Testability - Emily Bache

- Channel: Agile on the Beach
- Duration: 51 min
- Published on YouTube: 2022-09-22
- Watched: 2025-04-11
- Topics: Testing and quality, Software architecture
- Video: https://www.youtube.com/watch?v=pybZziC7y2o
- Page: https://schafzahl.dev/talks/architecting-for-testability-emily-bache/

## Summary

Emily Bache addresses getting legacy code under test and argues that testability should be treated as an architectural concern. She criticizes mock-heavy unit tests and slow end-to-end tests and advocates approval testing in the middle of the test pyramid, demonstrating the Approvals library and TextTest on a small booking microservice. Architectural changes such as controlling the database on startup, adding an endpoint to inspect internal state and running instances in parallel make this possible.
