DiscoverTest & Code : Python Testing for Software Engineering112: Six Principles of Readable Tests - David Seddon
112: Six Principles of Readable Tests - David Seddon

112: Six Principles of Readable Tests - David Seddon

Update: 2020-05-081
Share

Description

"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:




  1. Profit from the work of others

  2. Put naming to work

  3. Show only what matters

  4. Don’t repeat yourself

  5. Arrange, act, assert

  6. Aim high

Special Guest: David Seddon.

Sponsored By:

Support Test & Code : Python Testing for Software Engineering

Links:

Comments 
00:00
00:00
x

0.5x

0.8x

1.0x

1.25x

1.5x

2.0x

3.0x

Sleep Timer

Off

End of Episode

5 Minutes

10 Minutes

15 Minutes

30 Minutes

45 Minutes

60 Minutes

120 Minutes

112: Six Principles of Readable Tests - David Seddon

112: Six Principles of Readable Tests - David Seddon

Brian Okken