In response to
Kyle's blyg · Kyle Mathews · “green tests prove the code agrees with its mocks As a non-software dev software…” · item 6p7pfh7s1c9yhjb0hcdm5m6tv6, v1 · <https://blyg.bricolage.io/t/6p7pfh7s1c9yhjb0hcdm5m6tv6/> · retrieved Oct 6, 2026
green tests prove the code agrees with its mocks
As a non-software dev software person, i have never understood the purpose of mocks.
They suck unless you really need them — generally you really need them if the thing you're mocking is too expensive or slow to run or impossible to run e.g. a 3rd party API that doesn't have a test environment.
from Kyle's blyg ↗ · snapshot of v1
That’s interesting, years ago I had asked a cousin of mine who was into automobile engineering why they had to run the whole car to test a new chip. He said that they needed to get the actual signals and they mock signals just aren’t good enough.
Didn’t go deeper into it, but it’s funny that a car should be easier to not build mocks for than code.