Whether you are working on a big or small project, it is important to know that your codes are running properly. You have to make sure that the software runs smoothly and is free from bugs and if there are bugs, you should know how to fix them. This is where Test Driven Development comes into play. In this TCoffee and Code session, Stephen Ball is joined by Jens Fudge to discuss everything about Test Driven development and its huge role in programming, especially in Delphi.
What is the importance of Test-Driven development?
Interestingly, Test-Driven development is a common method or style in programming where the developers intentionally write a unit test and make sure that the test fails. After passing the test, the developer will refactor the code to make it more maintainable. Test-driven development or simply TDD plays a crucial role, especially when working with new projects. If you are going to add new codes, change or add new features into your existing codebase, TDD allows you to find bugs quicker.
Learn about the advantages of Unit Testing
The session also highlights the notable pros and cons of writing a unit test. While unit testing allows you to discover bugs quicker, it may also cost you time writing it especially if you’re new to it. According to Fudge, it really does take time to learn about unit testing just as it takes time to learn about programming. They also discuss the differences between NUnit and XUnit testing frameworks as well as other mocking and testing frameworks like Spring4D and Beyond Compare.
Jens Fudge also gives us a quick demo on how to get started with unit testing. To learn more about TDD, feel free to watch the superb 1 hour TCoffee and Code session below.