I‘ve got an Application which I‘d like to test wit...
# general
m
I‘ve got an Application which I‘d like to test with pact. It‘s a kind of plugin and this doesn‘t work with the normal ways to start pact within a unittest. To do an integrationtest I‘ve got to start pact before invoking the Tests on the cli. Is there an example how to do that? Thanks. 🤗
m
It's hard to understand your use case, could you elaborate a bit perhaps? Consumer or provider side?
m
I‘m writing an pulumi resource. To integrate-test it I‘ve got to start a mock server api which is the contract. I‘m not able to use an real instance for that. So I‘ve got to do something like that:
start_mock.sh
pulumi up
stop_mock.sh
m
I mean, that’s how the tests work today. But I get the feeling you want the mock server to have all of the interactions prepped before running
pulumi up
- is that correct? This is the older mock server (only supports up to v2) but can be started out of proc, unlike the newer libraries: https://github.com/pact-foundation/pact-mock_service/blob/master/script/example.sh Could that be an option for you?