Skip to main content

Posts

Showing posts from February, 2016

Test Driven Development

What is Test Driven Development (TDD)? In TDD, the software development process begins with creating tests based on requirements. The tests are executed. At this point these tests should fail. We write code to make these tests pass. Once the test pass, we refractor the code and make it pass the test again. TDD includes at least following steps: Create test cases  Execute test cases, it should fail.  Write code to make the tests pass Refractor and make the tests pass again Test Driven Development vs. Unit Testing In Unit testing we write code and then write the test cases to test the code. Whereas in the TDD, we write the tests right at the beginning and then we write the code to make the tests pass.