Hi, Had a basic query. How can I capture the com...
# pact-python
s
Hi, Had a basic query. How can I capture the comparison result when verifying a pact.
Copy code
verifier = Verifier(provider='UserService', provider_base_url=PACT_URL)
output, logs = verifier.verify_pacts('./userserviceclient-userservice.json', log_dir='/tmp/logs/, log_level='DEBUG')
For example: if the status code comparison fails, I would like to append it result to my test report
Any suggestions on this?
m
I think there is an output option to the verifier where they can go. I do believe it can print an xunit output, but not sure if it can print xunit and standard out
might be worth a feature request if you can’t do it
👍 1