About TDD

Other

Test-driven development (TDD) is a software development process that relies on the repetition of a very short development cycle: first the developer writes a failing automated test case that defines a desired improvement or new function, then produces code to pass that test and finally refactors the new code to acceptable standards.

In test-driven development a developer creates automated unit tests that define code requirements then immediately writes the code itself. The tests contain assertions that are either true or false. Passing the tests confirms correct behavior as developers evolve and refactor the code. Developers often use testing frameworks, such as xUnit, to create and automatically run sets of test cases.

TDD also called Test-Driven Design is a new approach and innovative technique in software development process, To use TDD in PHP i recommend PHPUnit and especially for Magento i recommend a nice extension based on PHPUnit, called EcomDev_PHPUnit.


Add comment
 
 
 

Comments