Skip to content

A test that passes while the code is broken

A test mocks every collaborator and asserts that each was called with the expected arguments. The code is later found to be broken in production, and the test still passes.

What is the most likely cause?