Hi team. I have one contract very big with many e...
# pact-jvm
a
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
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
ok, thanks!
🙌 1