top of page
Writer's pictureshalissweet

Test-driven development (TDD)

Test-driven development (TDD) is a development technique where you must first write a test that fails before you write new functional code. TDD is being quickly adopted by agile software developers for development of application source code and is even being adopted by Agile DBAs for database development.


Test-driven development (TDD) is a software development process relying on software requirements being converted to test cases before software is fully developed, and tracking all software development by repeatedly testing the software against all test cases. This is opposed to software being developed first and test cases created later.


The six steps of the TDD sequence are applied with minor semantic changes:

1. "Add a check" replaces "Add a test"

2. "Run all checks" replaces "Run all tests"

3. "Do the work" replaces "Write some code"

4. "Run all checks" replaces "Run tests"

5. "Clean up the work" replaces "Refactor code"

6. "Repeat"


<P.C - Google images>


What are the advantages of TDD approach?

  • Better program design and higher code quality. ...

  • Detailed project documentation. ...

  • TDD reduces the time required for project development. ...

  • Code flexibility and easier maintenance. ...

  • With TDD you will get a reliable solution. ...

  • Save project costs in the long run.

346 views

Recent Posts

See All
bottom of page