Chunting Wu
Nov 1, 2021

--

From my point of view, DI is not only good for unit tests but also good for integration tests. Let's say we implement the external dependencies independently, therefor, we can separate unit tests and integration tests. From the unit test triangle, we can know the amount of integration tests should be less than the unit tests. That is to say, DI can help reducing the integration tests effort.

--

--

Chunting Wu
Chunting Wu

Written by Chunting Wu

Architect at SHOPLINE. Experienced in system design, backend development, and data engineering.

Responses (1)