Writing Unit Tests Well

Write high quality tests with low effort.

This first module is focused on transitioning the developer from taking instruction over to deciding what’s needed. Testing and test design is the keystone for succeeding because the act of test design forces the developer to be concrete with what they want the code to do. As such, every shift within this module builds on testing design.

Successful completion on this module means that the developer can

  • Create an unit test for code they are about to write quickly and easily.
  • Write tests that are easy to read for multiple stakeholders.
  • Write tests that make debugging easy.

Content


01 — Writing Tests First with Comments

Clarify intentions before coding.

02 — Turning Comments to Code

Write your test in small, easy steps.

03 — Designs Everybody Can Read

Accomplish simple, clean, and customer-focused design through your tests.

04 — Testing Existing Code

Poke the product with tests.