Jani Hartikainen's Blog: Unit testing 5: test-driven development

Courtesy PHPDeveloper.org  Mon, 07/06/2009 - 21:06

Jani Hartikainen has posted part five of his look at unit testing in PHP (with PHPUnit) focusing on test-driven development.

The difference between "normal" and test-driven development (TDD) is that when doing TDD, you write unit tests for your new code before writing the code itself.

This way you ensure good test coverage for your code, and your code will also be more flexible and reusable, as you have to design the class interfaces for easy testing....


 

More related items

Project: MakeGood - A test runner for doing Test...
Goran has pointed out a plugin for Eclipse that can help those out there wanting to adopt Test-Driven Development into their process - MakeGood (screenshot here). MakeGood provides a test...

Keeping score in test-driven development with Python,...
Free Software Magazine: "Programming is more fun when you keep score. The extreme programming (XP) development model popularized the idea of test-driven development (TDD) with professional...

Avnet Labs Blog: TDD with Zend Framework
On the Avnet Labs blog today Ekerete has kicked off a new series looking specifically at using test-driven design to create Zend Framework-based applications: However, as useful as the...


 

Post new comment

The content of this field is kept private and will not be shown publicly.
computer-internet.marc8.com