The Wayback Machine - https://web.archive.org/web/20220409123634/https://github.com/topics/contract-testing
Skip to content
#

contract-testing

Here are 152 public repositories matching this topic...

francislainy
francislainy commented Jan 29, 2022

When Pact fails, it's a bit hard to know what the issue is considering the requests are not being printed back to the terminal. At the moment, I'm using this custom method to do this but I think it would be nice to have something like this out of the box.

public static void logCurlFromPact(PactVerificationContext context, HttpRequest request) {

        String bodyParam = ((RequestRespon
bethesque
bethesque commented Jul 22, 2021

Please add support for the following keys to be used in the consumer version selectors when fetching pacts for verification:

{ "deployedOrReleased": true }

{ "deployed": true }

{ "released": true }

{ "environment": "<env name>" }

{ "consumer": "<name>" } // this may already be supported, please add it if not

These keys can be used in various combinations ( eg. `{ "envir

pactum
emfomy
emfomy commented Sep 23, 2021

Describe the bug
Most expect methods print the request and response when the assertion fails.
However, the custom expect handler does not show these objects.

To Reproduce
Steps to reproduce the behavior:

const spec = pactum.spec();
spec.get(url);
await spec.toss();
await spec.response().to.have._((ctx) => {
  assert.fail('error');
});

*Expected behavior

enhancement good first issue
joelrosario
joelrosario commented Sep 15, 2020

Description
When the file passed to the stub does not exist, the stub neither displays an error nor exits.

Steps to reproduce

  1. Run the command qontract stub nonexistent.qontract
  2. Qontract runs, but prints nothing, nor does it exit.

Expected behavior
If any of the files or directories provided do not exist, Qontract should highlight this, but it should not die if there is

bug good first issue
PactSwift
mefellows
mefellows commented Oct 4, 2020

Problem Statement

Provide resources to help new users become proficient in Pact and PactSwift

💬 Task Description

Create an end-to-end workshop based on the canonical pact one (https://github.com/pact-foundation/pact-workshop-js).

👩‍🔧 Technical Design Notes

Suggest using the JS provider as the "backend" for the workshop, to both reduce the effort required in this workshop and

help wanted good first issue hacktoberfest

Improve this page

Add a description, image, and links to the contract-testing topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the contract-testing topic, visit your repo's landing page and select "manage topics."

Learn more