...

/

Test Documentation

Test Documentation

This lesson will cover documenting tests with consistent and meaningful names.

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.

Follow the naming conventions

Tests follow certain naming conventions which depend on their type.

Combined tests

The more we combine cases into a single test, the more generic and meaningless the ...

Access this course and 1400+ top-rated courses and projects.