Ensure That You’ve Implemented All Your Tests

Eve been writing unit tests, and while you’re coding one test, you have ideas for another test? In order not to break your train of thought, leave a bookmark in your test, to make sure to come back and fix it. It will look like this:

public void testUseGoodTestNameHere() {    fail("Not implemented yet.");}

Leave the failure until you’ve implemented the test completely.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

Recent Articles: