Knowledge Base

Test-driven development in legacy Delphi applications

How can test-driven development and unit testing be applied in legacy Delphi applications with a lot of database interaction? In this video Kees will explain how to approach this. He will cover the following topics:

  • Introduction
  • Why test-driven development
  • How does TDD work
  • How to write a good test
  • Starting with TDD
  • Setup DUnitX
  • Create a test for your application
  • Configure database access
  • Test code using the database
  • Refactor existing code
  • Test and refactor code in forms
  • Use mocking for dependencies


Written by Kees de Kraker


Let us help you to realise your ambitions

GDK Software UK

(+44) 20 3355 4470

GDK Software USA

+1 (575) 733-5744