Automation of integration tests
Of course, we do need to verify the integration between our code and any other dependencies, such as a database or downstream service. It is easy to misconfigure something, especially when database statements are involved. The level of integration tests should be far lower than the coverage of the unit tests, and again, we need to be able to run these tests in a reproducible environment. Docker is an excellent ally in this situation; we can leverage the capability of Docker to run in multiple environments. This enables us to configure and debug our integration tests on our local environment before executing them on the build server. In the same way that unit tests are a gate to a successful build, so are integration ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access