Turning Comments to Code

Write your test in small, easy steps.

The Change

Transform your comments unit test into a running unit test.

The Value Proposition

Writing a unit test can be hard, even though we have already defined it in comments. Writing that test incrementally, from the bottom up, provides the following advantages:

  1. Reduce mental overload by solving one problem at a time.
  2. Focus on the most valuable parts first.
  3. End up with a clearer, more expressive test.
Please log in

This content is only available to students. Please log in to access it.