Join Slack
Powered by
Hi team. I have one contract very big with many e...
# pact-jvm
a
Andre Rodrigues
10/20/2023, 1:00 PM
Hi team. I have one contract very big with many endpoints and my test class to the define the pact file is becoming huge. Does anyone know if is possible to generate the same contract using different test classes? Thanks.
b
Bas Dijkstra
10/20/2023, 1:12 PM
Hey Andre, if you keep the consumer identification consistent, you should be able to break up the tests into separate classes. Here’s an example:
https://github.com/basdijkstra/introduction-to-contract-testing/tree/main/customer-consumer/src/test/java/customer
If I run the tests in this project using Maven, all interactions end up in a single contract file, even though they’re split into two separate classes.
thankyou
2
👍 1
a
Andre Rodrigues
10/20/2023, 1:13 PM
ok, thanks!
🙌 1
Open in Slack
Previous
Next