DEV Community

Around IT In 256 Seconds

#56: Test-driven development

Test-driven development (TDD for short) means developing software by writing tests first. I hope you all write unit and integration tests. But do you write them before the actual production code? This approach to software development is just that. You must write a failing test first. And you are not allowed to write even a single line of production code without a failing test. Think about it. If all your tests are green, it is forbidden to write production code. Everything must start from a red test.

Read more: https://nurkiewicz.com/56

Get the new episode straight to your mailbox: https://nurkiewicz.com/newsletter

Episode source