integrant

j0ni 2019-07-12T02:03:36.014Z

can anyone here point me at an example of using mock services in the context of an integrant app? I'm trying to explain to a co-worker what I mean whilst avoiding writing pointless toy code

2019-07-14T00:01:20.023200Z

If I understand you correctly, you are talking about using something like WireMock with integrant. I don’t give you a code example, but I can summary how I would use it: - extract the endpoint url as a integrant key - in the test system configuration - make the WireMock a :required key for the component consuming the endpoint url (to keep the correct initialisation order) - replace endpoint url by WireMock url - in your integration tests, you declare the response you want to receive for given request. I hope that will help.

j0ni 2019-07-14T09:15:53.024500Z

@grzegorzrynkowski_clo thanks for taking the time! I will try that out. I had not heard of WireMock previously.

👍 1