Back to Browse

6 Tips for Writing Better Test Code

223 views
Nov 21, 2024
12:02

It’s important to write good test code and in this video I’ll share my 6 top tips to help you write better tests. Importance of Testing Failure Conditions: https://youtu.be/ZYGOreROp9c Test Interfaces, Not Implementations: https://youtu.be/bcV0KpZhkcI The intro music is: Acid Jazz by Kevin MacLeod is licensed under a Creative Commons Attribution 4.0 license. https://creativecommons.org/licenses/by/4.0/ Source: https://freemusicarchive.org/music/Kevin_MacLeod/Jazz_Sampler/AcidJazz_1430 Artist: http://incompetech.com/ The outro music is: Funk Game Loop by Kevin MacLeod is licensed under a Creative Commons Attribution 4.0 license. https://creativecommons.org/licenses/by/4.0/ Source: http://incompetech.com/music/royalty-free/index.html?isrc=USUAN1100839 Artist: http://incompetech.com/ 00:00 Intro 01:11 Tip 1 - Write Clean Tests 02:04 Tip 2 - Test One Scenario Per Test Case 03:52 Tip 3 - Test Error Cases 05:08 Tip 4 - Test Edge Cases 06:45 Tip 5 - Avoid External Dependencies 09:25 Tip 6 - Test Public Interfaces 11:26 Conclusions

Download

0 formats

No download links available.

6 Tips for Writing Better Test Code | NatokHD