← Back to context

Comment by chii

16 days ago

> because of mock-reality mismatches.

you also need to test the mocks against the real thing separately.

I would prefer that we all try to use this language consistently: https://www.martinfowler.com/articles/mocksArentStubs.html

What you're describing sounds like a fake to me.

  • Can't tell from the context that's here.

    It's important to have a contract testing layer in place to make sure your test doubles are still behaving like the real thing, though.

    • Contract testing is still a thing?

      I thought interested mostly fizzled out over the years after the initial hype died down

  • Good luck with that. Any org I’ve seen can’t even consistently agree what is a unit test, component test, black box test vs integration test.