Global Feed Post Login
Replying to Avatar Egge

Great plug haha. Bought and almost 50% through. Loving it so far.

However I am wondering about statements like “The goal of TDD is to create a test suite that you would trust with your life.”

Is that really possible? I can only think about so many edge cases. Never all of them. If I refactor a module and see all green I might be confident in that system, but what happens if my refactoring causes an edge case to error, that used to just slip through? Won’t it re-introduce the fear of touching the old code?

Avatar
ᴛʜᴇ ᴅᴇᴀᴛʜ ᴏꜰ ᴍʟᴇᴋᴜ 1y ago

fuzz tests fill most of the gaps and find you problems

good real world data sets can stress test your code too, nostr:npub12262qa4uhw7u8gdwlgmntqtv7aye8vdcmvszkqwgs0zchel6mz7s6cgrkj provided me with a gigadump of 180Gb of event data and it uncovered several bugs in my json parsing code (and revealed that maybe over 1% of all events are malformed so far)

Reply to this note

Please Login to reply.

Discussion

No replies yet.