You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provider Pact library: e.g. pact-jvm-provider-maven_2.11 v 3.3.8
Node Version: node --version
Issue Checklist
Please confirm the following:
I have upgraded to the latest
I have the read the FAQs in the Readme
I have triple checked, that there are no unhandled promises in my code and have read the section on intermittent test failures
I have set my log level to debug and attached a log file showing the complete request/response cycle
For bonus points and virtual high fives, I have created a reproduceable git repository (see below) to illustrate the problem
Expected behaviour
when you run provider tests and it does not find the contract file, should throw an error and failed the test run.
Actual behaviour
I am using jest with pact-js and found when I try to run provider tests which has a wrong mapping with consumer contract file or contract file does not exist.
It still shows Test Suites and Tests as passed.
Steps to reproduce
Just delete the contract files and run the provider tests
How can someone else reproduce this bug?
Just delete the contract files and run the provider tests
For extra bonus points and internet karma, provide a repository, gist or reproducible code snippet so that we can test the problem.
Code sample: https://codeshare.io/j0EEQM
We recommend forking the project and modifying a relevant example in the examples folder
Relevant log files
Please ensure you set logging to DEBUG and attach any relevant log files here (or link to a gist).
The text was updated successfully, but these errors were encountered:
Yes, because they are two different sources. One is a dynamic check from the broker, and the core is deliberately erroring if nothing is found. In this case, we should have an option to allow users to "not fail if nothing found".
The URL is a direct pact source. That seems like it should just simply error if the file doesn't exist. We have some validation in this module (that is clearly not working correctly), but ultimately that should be checked in the core.
Thank you for reporting a bug! We appreciate it very much. Issues are a big input into the priorities for Pact-JS development
All italic text in this template is safe to remove before submitting
Thanks again!
Software versions
Please provide at least OS and version of pact-js
node --version
Issue Checklist
Please confirm the following:
Expected behaviour
when you run provider tests and it does not find the contract file, should throw an error and failed the test run.
Actual behaviour
I am using jest with pact-js and found when I try to run provider tests which has a wrong mapping with consumer contract file or contract file does not exist.
It still shows Test Suites and Tests as passed.
Steps to reproduce
Just delete the contract files and run the provider tests
How can someone else reproduce this bug?
Just delete the contract files and run the provider tests
For extra bonus points and internet karma, provide a repository, gist or reproducible code snippet so that we can test the problem.
Code sample: https://codeshare.io/j0EEQM
We recommend forking the project and modifying a relevant example in the examples folder
Relevant log files
Please ensure you set logging to
DEBUG
and attach any relevant log files here (or link to a gist).The text was updated successfully, but these errors were encountered: