Shaping a healthy suite
On This Lesson 4 topics
This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.
In this lesson
balance fast tests and confidence.
Planned topics
- Many unit tests (fast), a moderate number of slice tests, few full integration tests.
- Fast feedback matters: unit tests in seconds, the whole suite in minutes.
- Do not test the same thing at every level.
- Track runtime and flaky tests; fix or delete tests nobody trusts.
- A failing test should point to the cause quickly.
Draft outline details
Demonstration
a pyramid with counts and times, for example unit 300 (10 s), slice 60 (40 s), integration 20 (3 min).
Check your understanding
Which level should have the most tests?
Show answer
Unit tests.
Practice
Apply this lesson with the module's lab, exercises and quiz.
Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.