Show HN: Mockingjay – Fake servers and consumer-driven contracts
github.com
github.com
I figured the requirements for both fake servers and CDCs in a lot of cases are the same. "Given a request, i want this response". So I thought, why not just define it once in configuration and be done with it. This stops the two things getting out of sync.
The wiki has lots of info as to how to use it and what the point of it is. Would appreciate any feedback, apart from mean things.
I think Pact and MJ have different advantages over each other.
Pact gives you more options but I think MJ is simpler to use and gives you options in terms of testing performance which is often neglected.
In one instance saw how certain scenarios meant we weren't releasing connections which then killed the app.
I suppose the main difference is
- As far as I can see, Stubby doesn't provide CDCs-like functionality and MJ does. The idea of this is you can make sure your fake endpoints are valid. A common problem with mocks is that they go out of sync with a real server so your build is green, but it shouldn't be
- No flaky functionality
- Doesn't require any particular system dependencies (npm, maven or anything like that)