Test & Code - Python Testing & Development
112: Six Principles of Readable Tests - David Seddon
- Author: Vários
- Narrator: Vários
- Publisher: Podcast
- Duration: 0:44:11
- More information
Informações:
Synopsis
"Code is read much more often than it is written." - Guido van Rossum This is true for both production code and test code.When you are trying to understand why a test is failing, you'll be very grateful to the test author if they've taken the care to make it readable.David Seddon came up with 6 principles to help us write more readable tests. We discuss these, as well as more benefits of readable tests.David's 6 Principles of Readable Tests:Profit from the work of othersPut naming to workShow only what mattersDon’t repeat yourselfArrange, act, assertAim highSpecial Guest: David Seddon.Links:How to write readable tests (presentation) · David SeddonHow to write readable tests (slides)pytestWebTest factory_boydjango-webtest