Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (11 sloc) 617 Bytes

Tips And Tricks

Fake It Until You Make It TDD

Many people do not have the luxury of writing their tests before the implementation, sometimes it is just not practical, or you have inherited a large codebase. Let's say you just wrote a test and it passes, but it seemed too easy. You aren't *really* sure that the test passes for the right reasons. What to do? Break the code your test relies on (flip a conditional, return from a function early, etc..) and run your test again, to make sure it fails. If not, you have a not-so-great test that needs improvement.

POD ERRORS

Hey! The above document had some coding errors, which are explained below:

Around line 4:

A non-empty Z<>