TDD (Test Driven Development ) in Pseudo Code

Since I started using Google test , I thought I would post a quick note about test driven development.

You can read more about Test Driven Development over on Wikipedia.

Test-Driven Development is related to the test-first programming concepts of Agile development methods, so you could think of it as tests at the start of each Scrum.

So here is Test Driven Development in pseudo code.

{ Remember that the point is to write a good test and then write the least amount of code you can to satisfy that test. }

    Write a test
    Write the least amount of code to pass the test
    WHILE Failing Test DO
    {
        fix bugs, Refactor if necessary
    }
    Have a Beer

Comments are closed.