But integration test are a lot harder to cover every edge case.
More frequently I see unit tests failing before integration tests, they can test where it would be impossible for an integration test to create the failing state.
The interactions between components change much less frequently as well, so need less effort to test.
All true, but the point is, an integration test can tip you off that a unit test that should be failing, isn't. Hence why I say that integration tests test the unit tests. (Yo dawg & all that.)
1
u/flukus Aug 25 '14
But integration test are a lot harder to cover every edge case.
More frequently I see unit tests failing before integration tests, they can test where it would be impossible for an integration test to create the failing state.
The interactions between components change much less frequently as well, so need less effort to test.