pact-msw-adapter icon indicating copy to clipboard operation
pact-msw-adapter copied to clipboard

In the Pact json file the description could be same as test name

Open ppaliwalgp opened this issue 1 year ago • 1 comments
trafficstars

Checklist

Before making a feature request, I have:

Feature description

The description in the generated Pact json file has value something like this '4624e592-115c-4bca-9bbe-f95a19b34854'. Same is displayed on Pactflow when the file is published. Instead if this could be a test name it would be helpful.

Use case

I presume that Pact file in Cypress doesn't display description this way. If the description has test name it would improve the readability of consumer tests in the Pactflow.

ppaliwalgp avatar Dec 20 '23 16:12 ppaliwalgp

it's set here

https://github.com/pactflow/pact-msw-adapter/blob/3889c23e9bcc583b50d7b329fc1d8077172e797a/src/convertMswMatchToPact.ts#L38

feel free to propose a PR if you can pick up the test name. I'm not sure how feasible that is, as the name is defined within your testing framework, of which there can be many, and we don't know up front which the end-user is using.

YOU54F avatar Jan 15 '24 17:01 YOU54F