Closed lcmgh closed 1 year ago
That is not doing anything other then creating a Pact object. You need to start a mock server, write the test code that interacts with it, and if everything is good, the mock server will write the Pact file out afterwards.
https://github.com/pact-foundation/pact-reference/blob/master/rust/pact_consumer/tests/tests.rs#L59
Thanks. This became only clear to me after trying out the example.
Thanks for updating the docs Ron
Hi!
Refering to https://docs.rs/pact_consumer/latest/pact_consumer/ .
It is not clear to me which fn call actually triggers the generation of pact files.
My test file looks like but I can't see any pac files in target/pacts.