this post was submitted on 01 Sep 2024
949 points (98.4% liked)

Programmer Humor

32730 readers
464 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 151 points 3 months ago (1 children)

Was this taken from the Crowdstrike repo?

[–] [email protected] 52 points 3 months ago (2 children)
[–] [email protected] 88 points 3 months ago (1 children)

Yup, and they're run on an estimated 8.5 million test machines

[–] [email protected] 21 points 3 months ago

Testing in prod is a power move honestly. Rock star-level

[–] [email protected] 18 points 3 months ago (3 children)

Yeah, but I think apparently the tests that "could" have caught it relied on mocks which basically rendered it useless in those cases.

[–] [email protected] 12 points 3 months ago

Ah yes. The unintended consequences of mandated code coverage without reviewing the tests. If you can mock the shit out of the test conditions to always give you exactly the answer you want, what's the point of the test?

It's like being allowed to write your own final exam, and all you need to pass the exam is 90% correct on the questions you wrote for yourself.

[–] [email protected] 4 points 3 months ago

Unit tests, yes, but you don't only do unit tests. Integration and e2e tests still exist.

[–] [email protected] 3 points 3 months ago

And this is why mocks are bad…