-
-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pact json being overwritten by each test #71
Comments
Hi @gallamine, this is expected behaviour. Check out splitting tests across multiple files. Basically, each time you instantiate a Check out how the example consumer test does this with |
This is helpful. Thanks! I've tried modifying my pact to look like this:
in both test cases, but the behavior still persists. I've thus moved to using Golang subtests to only use one pact definition. |
Mmm that shouldn't happen though, I'll reopen and investigate |
OK unfortunately my docs were out of date @gallamine, the parameter should have been |
- Allows path, query and headers to contain Matchers in order. - Update integration test examples to demonstrate capability - Speeds up test suite significantly BREAKING CHANGE Change updates the field definitions within the Request and Response types (See MatcherMap and MatcherString). Fixes #71
Closing this due to inactivity. I believe the issue is sorted, please re-open if there are further issues. |
Software versions
I'm writing Pact tests as part of a Golang application test system. I have several functions that each run a Pact test. They overwrite the previous functions pact definition such that my final
pact.json
only has the last run test. How do I have separate test functions that all append to the pact test?Example:
When those tests pass and I look in
pacts/loader-score_server.json
I only see:but that's only the last run test, not both of them.
The text was updated successfully, but these errors were encountered: