112: Six Principles of Readable Tests - David Seddon
Test & Code in Python - A podcast by Brian Okken
![](https://is5-ssl.mzstatic.com/image/thumb/Podcasts125/v4/62/ff/17/62ff17b2-fb33-5c70-f2fa-890e1892113c/mza_2090283641962767593.jpg/300x300bb-75.jpg)
Categories:
"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 others
- Put naming to work
- Show only what matters
- Don’t repeat yourself
- Arrange, act, assert
- Aim high
Special Guest: David Seddon.
Sponsored By:
- PyCharm Professional: Try PyCharm Pro for 4 months and learn how PyCharm will save you time. Promo Code: TESTNCODE2020
Support Test & Code : Python Testing for Software Engineers
Links: