Re:Is TDD Dead? (2014)
by gvjddbnvdrbv on Thursday August 27, 2020 @03:24AM
(#24290951)
This is more integration testing than unit testing. Certainly valuable but it shouldn't replace your unit tests.
Re:Is TDD Dead? (2014)
by dropofwill on Thursday August 27, 2020 @01:41PM
(#24296283)
Yeah, reading it again I mixed up what you wrote with someone else.
A more general approach would be to just run your happy path tests while wrecking the environment (e.g. randomly killing instances, adding latency, dropping packets, whatever).
I’ve found that the latter often uncovers problems that you can use the former to solve.
Testing these sort of things with unit tests can work, but I’m more confident in tests that run on a ‘real’ networking stack, instead of e.g. mocking a socket timeout exception.