Hello everyone! In my company, we are trying to un...
# general
b
Hello everyone! In my company, we are trying to understand the boundaries of the contract tests written in pacts. Of course, we've read this article (and watched the awesome video placed there), but we still have some doubts. Currently, our consumer messaging tests are very naive, we just return a JSON created from a DTO object created by hand -> so in fact, any of the layers of our application is not called. • Is there any pattern that could we use to make our tests a little more intelligent to verify whether the message is correctly handled by our service? • Is it a good idea to mock repositories and verify if an object that we get asynchronously is correctly written to a repository? • If not, why :)? Could you please share any articles/presentations related to such topic?