Integration Test
Question
What does an integration test verify?
Hint
Integration tests check if parts work together.
Explanation
An integration test verifies that multiple components or modules work together correctly. Unlike unit tests, integration tests may use real databases, APIs, or filesystems. They are slower than unit tests but catch integration bugs (interface mismatches, data flow issues). Examples: testing a repository with a real database, testing an API endpoint end-to-end with the application stack. Integration tests are fewer than unit tests (middle of the test pyramid). Balance: enough to catch integration bugs, not so many that they slow the suite.
Related Resources
Related Lessons
- Integration Testing
Learn integration tests.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.