-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a tips+tricks section with a suggestion from Gordon Worley III
- Loading branch information
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
=head1 Tips And Tricks | ||
|
||
Z<tips_and_tricks> | ||
X<tips_and_tricks> | ||
|
||
=head2 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. |