by bedobi · 2y ago · 0 comments
But it doesn't really matter if you want to call a given test an "integration" test or a "unit" test. The point of any test is to fail when something breaks and pass when something works, even if the implementation is changed. If it does the opposite in either of those cases, it's not a good test.
The point of any test is to document API expectations for future developers (which may include you).
That the documentation happens to be self-validating is merely a nice side effect.