Testing pyramid for Spring apps
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
know which kind of test to write.
Planned topics
- Many fast unit tests, fewer slice tests, few full-context tests.
- Unit: a class with plain Java, no Spring.
- Slice: part of the app (web layer) with Spring's help.
- Full: the whole app in a test; slowest.
- Fast tests are run often; slow ones get skipped.
Draft outline details
Demonstration
a pyramid with three levels and a rough cost label (milliseconds, a second or two, several seconds).
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.