Re:We need to talk about testing
by postalrat on Wednesday July 28, 2021 @01:48PM
(#27986860)
Someone wants to test:
And does something like:
Then the function is changed to:
Oops, broke the test. Is this a type of behavior change that you expect would break the test? Often there are many ways to correctly do something and a good test should allow any of them.
[ Parent
| on HN ]
But that's not a behavioral change, only bad testing. The test wouldn't be brittle if the behavior of adding was locked down completely.
Re:We need to talk about testing
by yourenotsmart on Thursday July 29, 2021 @12:06PM
(#27998071)
Any test that uses mocks is therefore "bad testing".