-
-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The issues on the Provider State are not reported #1082
Comments
How are you running the verification tests? |
I verify pact with JUnit 4 tests. So I'm running the verification tests using |
Do your provider state methods throw an exception when they fail? |
Sorry for this late reply. In most of the cases the provider state methods throw an exception. In this case, the report will not contain that specific interaction. Is there a way to change this? If the provider state throw an exception, flag this out in the report. |
Are you referring to the JSON or Markdown report, or on the standard output? Or are you referring to the JUnit test report? |
I am referring to the generated Pact reports: JSON and Markdown reports. If the provider state throw an exception, then the interactions itself is not run and won't be populated anything in the pact report. |
Ok, good, that should be easy to fix. |
4.1.1 has been released |
Tested and confirmed that it works fine. Thanks! |
Because of the nature of my project, I am doing some actions (some API calls) in the Provider State so that I can run then the Provider tests. One thing that I've noticed is the fact that if something goes wrong in the Provider State (for example, the response of the API call is not the expected one), this is not reflected in the report. The interaction that would use that Provider State will not be executed, so the interaction will not present in the report and might be missed when checking the results.
Could it be flagged that the Provider State failed, so the interaction was not executed?
Thanks
The text was updated successfully, but these errors were encountered: