-
-
Notifications
You must be signed in to change notification settings - Fork 481
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
Proposal: Integration of pact-jvm-mock into pact-jvm #1847
Comments
Hi @ludorival, when you say "integrating this into the official pact-jvm project", what do you envision that to be? This becomes a module in the Pact-JVM repo, or the docs for it get incorporated into the pact.io website? Or do you mean integrating it with Pact-JVM code (I notice it has it's own code for generating Pact files)? |
Hi @rholshausen , thanks for your reply. If you think there’s potential, I’d be happy to discuss how we could collaborate further or explore ways to integrate this effectively. Your insights would be greatly appreciated. |
Pact-JVM already has a lot of modules, I wouldn't want to add more unnecessarily. You are publishing to Maven Central already, so I think a better approach would be to update your repo to use the Pact-JVM modules (so you get all the V3 + V4 formats) and then integrate your docs with docs.pact.io. |
Hello @rholshausen, as per your suggestion I have integrated pact-jvm:core modulehttps://github.com/ludorival/pact-jvm-mock/blob/9e41611c014410a28284ceab04dc51f76d2ac8dc/build.gradle.kts#L170 |
Ok, cool, let me find out about integrating your docs. It works by pushing your project markdown files to docs.pact.io (I think that is still running Docosaurus) |
This makes sense to me. To setup and establish docs synchronisation, a few things are needed:
3 and 4 can be tested locally first, and once you're happy we can then setup the automation (1 and 2). |
Overview
I've developed
pact-jvm-mock
, a library that automatically generates Pact contracts from existing mocks (Mockk, Mockito) in Kotlin/Java applications. The library aims to reduce the barrier to entry for contract testing by leveraging developers' existing mocking code.Key Features
every
withuponReceiving
in existing mock definitions.Multiple Mock Framework Support: Works with both Mockk (Kotlin) and Mockito (Java), with an extensible adapter system.
Spring Integration: Built-in support for Spring RestTemplate with matching rules and provider states.
Benefits
Current Status
Next Steps
I believe integrating this into the official pact-jvm project would provide significant value to the community. I'm happy to:
Would you be interested in discussing this integration? I'm happy to provide more details or schedule a call to discuss further.
Repository: https://github.com/ludorival/pact-jvm-mock
The text was updated successfully, but these errors were encountered: