Standalone Setup and Execution
-
npm install
-
Sign up for pactflow and export the pact broker url and api token in your local machine.
export PACT_BROKER_BASE_URL= https://slalomukbuild.pactflow.io export PACT_BROKER_TOKEN=TOKEN
replace URL and TOKEN with actual values -
Execute consumer tests -
npm run test:consumer
-
Publish the pacts generated to the pactflow/broker:
npm run publish
-
Execute the pact tests at provider end -
npm run test:provider
-
Verify the results in the pactflow broker