Software Testing

Why a section on testing before we actually talk about writing any code?

Because TDD, that’s why!

You’ve decomposed your requirements down to tiny little atomic pieces of work, now you write a unit test for that requirement.

You run the unit test and it fails. Why? Because you haven’t written any code yet.

You write some code, run the unit test. Still fails. Write some more code, run the unit test, and it passes.

When your unit tests pass, you are done coding.

Check-in your code and move on to the next thing.

Software Testing

Software Testing Explained in 100 Seconds


Additional Resources

  • Unit Testing Frameworks – Check out the number of frameworks available. Find one for the programming language you are using and start exploring TDD.

Like this content? Please share with your friends!