Test-Driven Development (TDD) in Python #1 - The 3 Steps of TDD

preview_player
Показать описание
Jason Gorman demonstrates the 3 steps of the TDD cycle.

1. Write a failing test
2. Write the simplest code to pass the test
3. Refactor if necessary to keep the code readable, simple & easy to change

Рекомендации по теме
Комментарии
Автор

Great series. It's even more helpful on rewatch after trying it out.

RoamingAdhocrat
Автор

Please - YES PLEASE - do also create tests for malicious submissions. Do test what happens when you buy '-1' items, or if you buy 'null' items. Then you've got all the injection type of entries... TDD basically boils down to creating a small checklist of expected behavior and code towards that. The hacker mindset will try to find what you didn't test for. (so these tests are a golden gift to scan your test scope)

freesoftwaretalk
Автор

Easy to follow and straight to the point. Thanks!

leo
Автор

Good video, simple and understandable.

francisconavarro
Автор

What is the shortcut you used to move the class to another file?

jasondads
Автор

this is incredibly backwards, but its becoming popular so thank you for explaining it.

gaby
Автор

For some reason I keep seeing Paul Bettany in my head, but I'm a Yank so what do I know.

nullhype
Автор

How did you refactor Item into its own file? Some keyboard shortcut?

LukeBrewMoreBeer
join shbcf.ru