Skip to content

Integration vs unit vs e2e

Three layers, three trade-offs: speed vs fidelity, isolation vs realism, milliseconds vs minutes.

Aspect

Unit

Integration

End-to-end

Scope

One unit

2-N units

Whole system

Collaborators

All mocked

Real or substitute

Real

Speed

Milliseconds

Hundreds of ms

Minutes

Failure locates

Unit

Contract boundary

User flow

Coverage in healthy suite

70-80%

10-20%

5-10%