Skip to main content

Testing

Overview​

Compatibility vs Interaction

Test Types​

NamePurposeLinks
Unit TestsThe fundamental property of unit tests is isolation. A unit test executes only one specific function and excludes all outside influences (communication with other systems, calls to other functions, etc.). Key techniques for ensuring this isolation include mocking, parameterization, and the single responsibility principle as programming methodologies used when developing testable code.- JUnit tutorial (vogella.com)
- Unit / Integration Testing with Kafka
Interaction TestsInteraction tests verify that a microservice interacts correctly with other microservices. In particular, they check whether the microservice triggers follow-up events or requests to other APIs.- Interaction Tests
CDC TestsThe goal of Consumer-Driven-Contract-Tests (CDCT) with Pact is efficient, stable, and meaningful integration tests between a service provider and its service consumers. Such tests aim to make the usually very costly, fragile end-to-end tests of interfaces on test environments with preconfigured test data largely unnecessary.
Business Process TestsThe automated business process tests aim to test the interplay between different business applications and form the top of the test pyramid. Business/domain correctness should not be verified in the business process tests.- Business Process Testautomation
ZAP Security Tests

Topics​