根据 Martin Flower 的说法,合同测试是在外部服务边界进行的测试,用于验证
其是否符合消费服务预期的合同。
此外,合同测试不会深入测试服务的行为。更确切地说,它测试该服务调用的输
入&输出包含所需的属性和所述响应延迟,吞吐量是允许的限度内。