Intermediate Web & Software Development
Q71 / 100

In automated testing, what distinguishes an integration test from a unit test?

Correct! Well done.

Incorrect.

The correct answer is A) Integration tests check how multiple components or systems (e.g., application code plus a real database or external service) work together, while unit tests isolate and verify a single function or class in isolation

A

Correct Answer

Integration tests check how multiple components or systems (e.g., application code plus a real database or external service) work together, while unit tests isolate and verify a single function or class in isolation

Explanation

Unit tests isolate a single piece of logic (often using mocks for collaborators) and run very fast. Integration tests exercise the interaction between real components — application code with a real database, message queue, or third-party API — catching issues unit tests miss.

Progress
71/100