airfocus-logoGlossary
About airfocus

Try for free

Test-Driven Development (TDD)

CONTENTS

What is TDD (Test-Driven Development)?

💬

Definition off Test-Driven Development, or TDD

Test-Driven Development, or TDD, is a software development process that favors testing a specific unit before developing the code. By testing first, developers can refactor and optimize the resulting code to produce the best possible solution. 

The aim of TDD is to have developers create functionality that directly solves a specific test case. Failed tests are actually expected, because TDD demands that developers rewrite (or refactor) code until the tests pass in the most lean and lightweight manner. 

Benefits of TDD

TDD is beneficial for the overall software development process because it ensures that specific features are viable before the final build of the application is completed. By solving for specific use cases, developers can ensure that the final application will be able to handle specific end user requirements. 

Because failure and refactoring is built into TDD, the process ensures that final code is as efficient as possible. 

Issues with TDD

Because TDD is highly focused on specific features, it is not always a good solution for macro-scale features in an application, such as user interfaces or database operations. 

Any testing which requires the full functionality of the software will not be possible with TDD, because each feature is built in isolation — that’s why it takes so long to do, too!

Lastly, TDD should not be confused with User Acceptance Testing. Units that are successful in TDD still need to be tested with end users once the code is written.

eBook

Roadmapping From A to Z

Read now
CTA eBook image background
airfocus eBook Roadmapping From A to Z

Test-Driven-Development

General FAQ

What is test-driven development (TDD)?
Test-Driven Development, or TDD, is a process for software development that requires functionality to be developed against specific test cases before being refactored and optimized for the final build.
How does TDD fit into Agile development?
Test-Driven Development, TDD, is a methodology that shares many of the same principles as Agile development: it tasks developers to work in isolated, focused bursts to deliver better results.
airfocus eBook Roadmapping From A to Z
eBook
Roadmapping From A to Z
Read now

Experience the new
way of doing product
management

Try for free

Book a demo

airfocus modular platform
Top rated
on major review platforms
g2 badge users love us
g2 badge leader fall
GetApp badge category leader
software advice badge
capterra shortlist badge
proddy badge roadmapping
crozdesk badge
Company
All rights reserved. contact@airfocus.com
ENDE