3 ms·
>on disconnection from the service, which would be too costly to repeat exhaustively in integration tests. Um, disconnection from the service is the exact kind
by crdoconnor 9y ago
>on disconnection from the service, which would be too costly to repeat exhaustively in integration tests.
Um, disconnection from the service is the exact kind of scenario I'd want to repeat exhaustively in an integration test.
- rectang 9y agoThis reply doesn't address the principle that there must be issues which can be addressed using unit tests but not integration tests. Even if you take every example I give and claim "doesn't count, I'd test for that", you're just writing unit-tests-once-removed using an integration testing framework.
- crdoconnor 9y ago>This reply doesn't address the principle that there must be issues which can be addressed using unit tests but not integration tests. Well, that's asking me to disprove a negative. All I can say is that I don't think that principle is true. One counter-example of a scenario that is impossible to integration test but possible to unit test would be sufficient to disprove my hypothesis, but I don't think it exists and I don't think you can provide it. >Even if you take every example I give and claim "doesn't count, I'd test for that", you're just writing unit-tests-once-removed using an integration testing framework. I'm really not. I can test disconnection scenarios in an integration test without even coupling to the language under test by running a service that intercepts network traffic. It's obviously not a "unit test once removed" if I can literally swap out the entire language under test and not have to change the test.
- rectang 9y agoI already provided such an example: the disconnection. The key aspect of that theoretical example was that it would be "too costly to repeat exhaustively in integration tests". You simply wished away that trait, avoiding the issue.
- crdoconnor 9y agoNo, I can test that.