DEV Community

Discussion on: API e2e testing event driven systems

Collapse
 
muratkeremozcan profile image
Murat K Ozcan • Edited

Once I learn Kafka, I promise it will be there. Alas, the API e2e testing of the system might just be exactly the same.

For API testing , there is no mocking and stubbing. The mirror of your UI based idea is in fact from Pact.io; consumer driven contract testing. You run what looks like a unit test at the API client, it generates a Jason file, and then a broker ensures that the provider is aligned with what the API client expects. This is the key solution to testing service integration prior to a common deployment.

When I learn enough about Pact, I will be sure to write about it. For now, here are some examples github.com/muratkeremozcan/pactio.