Test Documentation

Our unit tests should provide lasting and trustworthy documentation of the capabilities of the classes we build.

Tests provide opportunities to explain things that the code itself can’t. In a sense, tests can replace a lot of the comments we might otherwise want to write in the code body.

Get hands-on with 1400+ tech skills courses.