tubeshowcaseā—1,194,391 videosā™” My collection 0
← Learn to Code

Learn to Code15:10

Test-Driven Development In Python // The Power of Red-Green-Refactor

ArjanCodes ↗

From the creator

šŸ’” Learn how to design great software in 7 steps: https://arjan.codes/designguide. Test-driven development (TDD), also known as red-green-refactor is a common software development technique in which you write tests before you write the actual code. In this video, I show an example in Python of how to do TDD using the unittest package. I also share a few practical tips related to software testing in this video. The code I worked on in this episode is available here: https://github.com/ArjanCodes/2021-tdd. šŸŽ“ ArjanCodes Courses: https://www.arjancodes.com/courses. šŸ’¬ Join my Discord server: https://discord.arjan.codes. āŒØļø Keyboard I’m using: https://amzn.to/49YM97v. šŸ”– Chapters: 0:00 Intro 0:20 Explaining the example 1:06 What is Test-Driven Development (TDD)? 2:59 The RED phase 6:26 The GREEN phase 7:36 The REFACTOR phase 8:58 The pros and cons of TDD 11:31 Testing tip #1: isolate tests 12:28 Testing tip #2: don't test the Python standard library 13:05 Testing tip #3: compare test output with fixed values 13:58 Testing at a startup company #arjancodes #softwaredesign #python

Published 2021-08-13 Ā· Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code