Many tests in one spec

You will learn

Why several small tests read better than one long one, and how the report counts them.

A spec may hold any number of test blocks. Each one checks one idea and has a name that says which. The report counts tests and asserts separately: the lesson spec has 3 tests and 5 asserts. When one fails, its name tells you which idea broke, and the other tests still report on their own ideas.

Open the interactive lesson →