Tech Glossary

What is TDD?

TDD, or Test Driven Development, is a development methodology where you first write tests for the functionality you want to build, and then write the code to make the tests pass. In this way, you are forced to think through how the functionality should look and how it should work before you start writing the code, and you also get measurable quality assurance in the form of tests that are run every time you make changes to the code. Compared to regular coding, TDD is more time-consuming at the beginning of a project, because you have to write the tests first. But in the long term, it is a more efficient methodology because you get better quality of the code and fewer bugs. It's also a good methodology for learning a new API or library, because you're forced to think through how it works before you start using it.

Relaterade