A response to James Shore's Nullable pattern
higherorderlogic.com
A response to James Shore's Nullable pattern
1–5 of 5 posts
Re: A response to James Shore's Nullable pattern
#2I don't have a clear definition of integrity tests and would describe it as verifying the interface (or combined behaviour) of two classes/objects. [It's exceedingly difficult to google.] These tests can mock anything other than the things which are part of the interface being tested. The ones I wrote tended to be meta/generic in nature: e.g. validating that all valid inputs to one produce valid outputs from the pair, or invalid inputs to one call nothing outside of the pair, etc. Some slow integration testing with harder to setup/maintain data can be replaced with faster/simpler integrity tests.
Re: A response to James Shore's Nullable pattern
#3Some of it conflicts with pre-existing usage in ways that could be confusing. For example, "nullable" already has a meaning in modern type systems. It would be weird to have a "nullable" object stored in a non-null variable.
Re: A response to James Shore's Nullable pattern
#4I was about to write a comment about "Integrity Tests" (different from integration testing). The article mentions "Narrow Integration Tests" and "Collaborator-Based Isolation" which sound very similar. I don't have a clear definition of integrity tests and would describe it as verifying the interface (or combined behaviour) of two classes/objects. [It's exceedingly difficult to google.] These tests can mock anything…
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. ;-)
Re: A response to James Shore's Nullable pattern
#5I was about to write a comment about "Integrity Tests" (different from integration testing). The article mentions "Narrow Integration Tests" and "Collaborator-Based Isolation" which sound very similar. I don't have a clear definition of integrity tests and would describe it as verifying the interface (or combined behaviour) of two classes/objects. [It's exceedingly difficult to google.] These tests can mock anything…
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