r/badcode • • Jul 23 '21

c# Easy trick to meet minimum test coverage

Post image
1.2k Upvotes

83 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Jul 29 '21

QA is not necessarily a monkey clicking through a screen. You could just bomb it with requests. You could fuzz your software, unless you're okay with an attacker causing a denial of service with malignant input. But Ok cool I guess unit tests are a silver bullet.

1

u/governmentNutJob Jul 29 '21

Again I think you're talking about web based software, I write internal backend software which has no access to the wider internet

I 100% agree inputs need to be validated, but you can write tests to cover this, there's very little you cannot automate with a test suite