Hacker News new | ask | show | jobs
by drewcoo 1417 days ago
I'd never heard anyone call those "integrity tests" before. I think "contract test" is more common.

Assuming I understood you, that is.

I've been telling everyone to look at Pact to make contract testing easier to organize and maintain and to make it easier to trigger in the other tests in CI when an interface's behavior changes. They haven't offered me a commission yet. ;-)

https://pact.io

1 comments

I've also done contract testing and integrity tests are different, I'm doing a bad job of trying to describe them. I would say that Contract tests could be considered a subset of integrity testing. I think the difference could be that contract tests (as I've used them) generate unit tests for each side. Integrity tests may treat the pair as a unit and test them, to ensure their combined implementation behaves well.