Paul Caplan
04/20/2023, 6:07 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Slackbot
04/20/2023, 11:00 PMTimothy Jones
04/21/2023, 8:17 AMProve me wrong: Pact (or any form of consumer-driven contract testing) provides little to no value for testing GraphQL APIs.Why?
Timothy Jones
04/21/2023, 8:18 AMTimothy Jones
04/21/2023, 8:18 AMTimothy Jones
04/21/2023, 8:19 AMTimothy Jones
04/21/2023, 8:20 AMAssuming I have a way to ensure that there are no breaking changes to the provider’s schema (e.g. by static analysis)As far as I know, there are no static analysis tools that can do this.
Timothy Jones
04/21/2023, 8:21 AMTimothy Jones
04/21/2023, 8:21 AMfor example, gRPC prevents syntactic breaking changes by ensuring that all fields have default values. However, this is a bit like saying “all our endpoints use json, so we can’t send incompatible responses”. Just because the payload can be parsed by the consumer doesn’t mean it has meaning to the consumer.
Timothy Jones
04/21/2023, 8:26 AMTimothy Jones
04/21/2023, 8:27 AMMatt Yao
04/21/2023, 8:41 AMPaul Caplan
04/21/2023, 2:05 PMMatt (pactflow.io / pact-js / pact-go)