Closed bmarini closed 6 years ago
I get that this is a temporary issue until there is a native go implementation, and provider verification can run in the test process, with no need to call out to a separate binary, but running the provider verifier through the daemon currently is pretty useless since you don't see the test output.
Thanks, would you be open to submitting A PR to make it better?
I'd like to help out on the native go implementation of the v2 spec, is that in the works anywhere?
We're working on a Rust implementation which will be used by all the other implementations using FFI. Until then, we're stuck with the separate process. Your help to improve the output would be greatly appreciated.
Ok, I looked into this a bit more and I think its a matter of getting pact-go to ask for the json formatted version of the verifier output, and then packaging that up in a usable way back into the client code. I may take a stab at it.
That JSON formatted output is a relatively new thing. Would love a PR (I'm lost for time atm).
If you're feeling really generous, I would appreciate any help on https://github.com/pact-foundation/pact-go/issues/31. This essentially acknowledges what you are talking about above, and proposes some solutions.
The Reference is still some way away (although good progress is coming), but is definitely closer than re-implementing it in its entirety in Go, particularly when you consider v3 and v4 (draft) are on their way too.
Released v0.0.10
I ended up bypassing the daemon and shelling out to the ruby
pact-provider-verifier
directly because none of the verifier's output was being returned to me in my tests.Running the verification as described in the README, I get something similar to this: