Index Ai Academy
Glossary · Phase 7 · Software engineering

Test-driven development

Also written: TDD

Writing a failing test first, then the code that makes it pass, then tidying up.

Try it now

Many unit tests, some integration tests, and a few end-to-end tests: that's the pyramid.

Learn it properly

Testing your code · Automated tests that prove code works and keep it working. About 35 minutes.

Create a free account See what's in the lesson

Other terms from the same lesson

Never trained an AI?

Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.

Teach it to write