Types of tests

As discussed before, automating tasks is a necessity in CI. You can perform many types of test, and not necessarily all of them at once. According to a test automation strategy introduced by Mike Cohn, tests can be represented by the following pyramid:

Unit tests are narrow in scope and typically verify the behavior of individual methods or functions.

Integration tests make sure that multiple components behave correctly together. This can involve several classes, as well as testing the integration with other services.

Acceptance tests are similar to the integration tests, but they focus on the business cases rather than the ...

Get Advanced Infrastructure Penetration Testing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.