4 ms·
I'm trying to wrap my head around here. So there are tests that leverage mocks. Those mocks help validate software is performing as desired by enabling tests t
by RobRivera 7mo ago
I'm trying to wrap my head around here.
So there are tests that leverage mocks. Those mocks help validate software is performing as desired by enabling tests to see the software behaves as desired in varying contexts.
If the software fails, it is because the mocks exposed that under certain inputs, undesired behavior occurs, an assert fails, and a red line flags the test output.
Validating that the mocks return the desired output....
Maybe there is a desire that the mocks return a stream of random numbers and the mock validation tests asserts said stream adheres to a particular distribution?
Maybe someone in the past pushed a bad mock into prod, that mock validated a test that would have failed given better mock, and a post mortem when the bad software, now pushed into prod, was traced to a bad mock derived a requirement that all mocks must be validated?
- bensyverson 7mo agoYeah, seems plausible, or it was just "belt and suspenders." Sure made a lot of pretty green checkmarks.