.NET version of Pact. Enables consumer driven contract testing, providing a mock service and DSL for the consumer project, and interaction playback and verification for the service provider project.
I am writing to inquire about the issue I am struggling with for a number of hours. Specifically, Provider verification results are not published, but only when I run the tests on my CI pipeline.
I am using PactNet version 4.5
When I run the tests locally everything works fine, and the results appear in the Broker. Here's how I launch verification in Provider test
I am fully aware that this behavior should be inversed: CI is the place where I want my verification. I intended to block local verification through if clause and checking for pipeline-specific environment variables. Still, for some reason this does not work on the pipeline and I get no error message there. Am I doing something wrong or is it a bug?
EDIT: Looking at the test logs generated by MS tests in the pipeline (not console logs of the test run) I found the following information:
Apologies, in the course of my own investigation I discovered it is the way we identify branch that is flawed and not the framework. As such, this question is irrelevant to your solution. Again, apologies.
Hello PactNet team,
I am writing to inquire about the issue I am struggling with for a number of hours. Specifically, Provider verification results are not published, but only when I run the tests on my CI pipeline.
I am using PactNet version 4.5
When I run the tests locally everything works fine, and the results appear in the Broker. Here's how I launch verification in Provider test
I am fully aware that this behavior should be inversed: CI is the place where I want my verification. I intended to block local verification through if clause and checking for pipeline-specific environment variables. Still, for some reason this does not work on the pipeline and I get no error message there. Am I doing something wrong or is it a bug?
EDIT: Looking at the test logs generated by MS tests in the pipeline (not console logs of the test run) I found the following information:
It seems that the variables {branch} and {version} are substituted incorrectly
Any reason for why that happens?