also a second question is so in regards of the pro...
# pact-js
j
also a second question is so in regards of the pros and cons of contract testing vs say property based testing apis?
m
Property testing doesn’t care about what the consumer actually does
it is all about the provider
j
do you think it is a good test strategy to create some contract tests and also run property based tests against the apis to find weird edge cases?
m
contract tests are about preventing API breaking changes (amongst other things), whereas property testing is more about discovering issues with the provider
so yes, it wouldn’t be a bad idea
but in my experience I’d say property testing is also not that common
(not a reason not to do it)
j
yeah im looking into this tool called schemathesis - looks pretty good
💯 1
t
I'd be curious to know how you go with Schemathesis - my gut is that you'd run into the problem with things that are hard to express / not expressed in the schema - eg conditional properties based on values of other fields
m
j
i let you know how i get on with it
👍 1
I tried out schemathestis it appears to be pretty good actually. Though the only downside i could find from it is that for REST you need to generate a specification file that may not always be possbile?