owl: text editor with code, captioned "life would be easier if I had the source code" (source code)
only a sinner saved by grace ([personal profile] owl) wrote in [site community profile] dw_dev_training 2012-03-25 10:53 pm (UTC)

I've been working with a lot of babydevs/new coders in work over the last year or so, and I've found that people generally do think: Positive. Negative. Regression. In that order, and quite often stopping at the first one.

It's really useful to write your test plan before you write the code because it helps you think of scenarios/code paths you might miss. It's even better if it's something that you can write an automated test for because then you just go, write tests, write code, run tests, fix and refactor, run tests, commit. And the regression testing comes for free for the next person.

TL;DR: TDD, it's awesome!

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting