Skip to content
Ameen Abozaid
Planned lessonJNR-045-L01

What integration tests prove

  • Lesson 1 of 7
  • Junior
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 what unit tests cannot show and integration tests can.

Planned topics

  • Unit tests check logic in isolation; integration tests check that parts work together with real infrastructure.
  • They catch wrong SQL, missing migrations, mapping errors, and wrong configuration.
  • They are slower, so write fewer and aim them at boundaries: database, web layer, messaging.
  • Use the same database as production; an in-memory stand-in hides differences.
  • Docker must be running for the tests in this module.
Draft outline details

Demonstration

a diagram: unit test (class + fakes) versus integration test (class + Spring + real PostgreSQL).

Check your understanding

Name a bug a unit test with a fake repository cannot find.

Show answer

A wrong SQL query or missing column.

Practice

Apply this lesson with the module's lab, exercises and quiz.

Lab and exercises Quiz

Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.

Continue to next lesson

Type to search levels, phases, modules and lessons.