Consumer driven contract test in golang

Hi all

I’ve written a microservice based on REST and would like to test it.

For testing microservices the test methodology consumer driven contract test is recommended, that I’ve read somewhere in internet.

How to write CDCT in golang without the any framework?

Thanks

Consumer driven contract testing only means that the API of your service, the “contract”, is defined by the client, not the server. This is not a technical but an organisational question.

You can test any REST server implemented in Go using httptest.Server.

On unit testing http servers I can recommend this video as a kickstarter https://youtu.be/hVFEV-ieeew

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.