|
|
|
|
|
by hitchstory
533 days ago
|
|
There isnt much consensus on the right kind of test to write with TDD, but when you get it right or wrong it makes or breaks TDD. Recently Ive been writing mostly "end-to-end unit tests" - stateless, faking all external services (database, message queue, etc.) with TDD which works great. There is a sweet spot on default test types - at a high a level as possible while being hermetic seems to be ideal. The other un-talked about thing is that to be able to always write this kind of test you need test infrastructure which isnt cheap to build (all those fakes). |
|
Yet many developers don't even know what a runtime assertion is while everyone knows what TDD is. I guess it doesn't really matter if you're working on something which can crash and then everyone will be like "oh it's just IT, it does that".