Provider test are explained incorrectly. ideally Provider contract test should be executed with Actual Provider service not mocked provider service. We can mock the other dependent Services of targeted Provider so that Targeted Provider can be tested in Isolation. This seems like everything is mocked and we are not even testing anything except working of pact
Hi.. Thanks for such a informative video..I need to understand here, as part of consumer side we are only setting up expected response through Mock test (in your case fields like brand, name and price )so here we will be testing the provider whether it will match the response that we have added through Mock service. So my question is if I want to test a microservice, I should always keep that as a provider and not consumer??
Not necessarily, here the consumer had unit tests too after which only the contract tests are run. But ideally the if service A calls/depends on service B then here consumer is A and B is provider
am not seeing ProductPactTests skipping verification results not sure why "2022-04-25 21:33:23.513 WARN 13848 --- [ main] a.c.d.p.p.junit.InteractionRunner : Skipping publishing of verification results (pact.verifier.publishResults is not set to 'true') can you please help debug?
I find this video better than the official pact video. nicely explained.good job guys !
very nice articulation of the concepts and explained the implementation in a very simplified way!
Very informative discussion! Thanks for the upload.
Hi , Do you have anything on recently launched bi-directional contract testing?
awsome, could you also create a tutorial on how to use pact ? and what does those annotations means ? It will be very helpful.
Unfortunately the sound quality is terrible.
Provider test are explained incorrectly. ideally Provider contract test should be executed with Actual Provider service not mocked provider service.
We can mock the other dependent Services of targeted Provider so that Targeted Provider can be tested in Isolation.
This seems like everything is mocked and we are not even testing anything except working of pact
I tried to implement the way you did, but on the provider side the actual service is getting called instead of the mock service.
Hi Midhun Nair, Please refer to the Github repository mentioned in the description of this video. I hope that would help.
Good information.. Thanks for sharing it.
Very informative. Thanks
JetBrains' IntelliJ IDEA is what the project was opened with....
Good one thanks
Hi.. Thanks for such a informative video..I need to understand here, as part of consumer side we are only setting up expected response through Mock test (in your case fields like brand, name and price )so here we will be testing the provider whether it will match the response that we have added through Mock service. So my question is if I want to test a microservice, I should always keep that as a provider and not consumer??
Not necessarily, here the consumer had unit tests too after which only the contract tests are run. But ideally the if service A calls/depends on service B then here consumer is A and B is provider
It's a mutual contract, so as a consumer I know what I want to consume, and as a provider I should adhere to the contract.
can we publish a contract without using mvn command(i was working on a maven project). i wanted to automate it without usinf commands through terminal
were you able to automate it?
Good stuff... very helpful!!
You're showing pre-written code.
Nothing step-by-step.
Thankx!!
am not seeing ProductPactTests skipping verification results not sure why "2022-04-25 21:33:23.513 WARN 13848 --- [ main] a.c.d.p.p.junit.InteractionRunner : Skipping publishing of verification results (pact.verifier.publishResults is not set to 'true') can you please help debug?
below properties are there in the build.gradle file systemProperty 'pact.verifier.publishResults', 'true'
useJUnitPlatform()
Very informative. Thanks