Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • When you have two units, you test each with a unit test. When those two units integrate with each other, you test the integration with an integration test. They don't have to be "out of process", and these kinds of tests are extremely common. Commented Oct 24, 2016 at 13:07
  • 1
    You're absolutely correct - things don't have to be out of process to be an integration test. That's why I tried to be clear that my answer was more a "rule of thumb" (but perhaps failed). I disagree that integration tests between units are "extremely common" though. Integration tests with out of process are much more common in my experience and are frequently highly valuable, hence why my answer emphasises that aspect of integration testing. Commented Oct 25, 2016 at 0:02
  • "All tests can be considered to lie somewhere on the integration spectrum, integrating between 0-n components" –– Very interesting, I've never watched it that way Commented Dec 3, 2024 at 20:29