Was there even tests?

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

@teejay@lemmy.world
link
fedilink
English
135M

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.

@marlowe221@lemmy.world
link
fedilink
English
35M

And this is why mocks are bad…

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

@phorq@lemmy.ml
link
fedilink
Español
895M

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

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

Create a post

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

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
  • 1 user online
  • 70 users / day
  • 165 users / week
  • 617 users / month
  • 2.29K users / 6 months
  • 1 subscriber
  • 1.66K Posts
  • 36.7K Comments
  • Modlog