Spring Cloud Contract, "strict" mode?

34 Views Asked by At

I'm new to Cloud Contract, I integrated it in a Producer microservice and in its client, the Consumer microservice. I noticed that, if I add attributes to the REST entity on the Producer side, forgetting to update the groovy contract accordingly, I have no warning at all.

I can't find a good way to detect such a situation: I would like to have an error executing my IT tests when the contract doesn't "cover" some new attributes.

How could I achieve this result? Is there a configuration option somewhere to enable a "strict" mode, when generating the Producer tests?

1

There are 1 best solutions below

1
Marcin Grzejszczak On

There's no way to tell Spring Cloud Contract that the production code has changed