pact-foundation / pact-net

.NET version of Pact. Enables consumer driven contract testing, providing a mock service and DSL for the consumer project, and interaction playback and verification for the service provider project.
https://pact.io
MIT License
823 stars 225 forks source link

RFC: add failIfNoPactsFound flag to Provider tests #507

Open arnoldsi-payo opened 2 weeks ago

arnoldsi-payo commented 2 weeks ago

Following the discussion here: https://pact-foundation.slack.com/archives/C9UTHV2AD/p1718604649363489?thread_ts=1717870729.985429&cid=C9UTHV2AD

Pact.Net is missing the "failIfNoPactsFound" flag, which exists in the nodeJS library. Without this crucial functionality, we are currently unable to conduct provider tests unless the consumer pacts are published to the broker, which is a significant limitation.

It's a very important feature (in my opinion), especially for messaging (async) testing.

YOU54F commented 2 weeks ago

dupe of https://github.com/pact-foundation/pact-net/issues/462

adamrodger commented 2 weeks ago

Duplicate of https://github.com/pact-foundation/pact-net/issues/462