logoalt Hacker News

bob1029 • today at 8:13 PM • 0 replies • view on HN

I look at each unit test as a sample. Some of these might be bad. In aggregate, I think they provide stronger assurances. A sample (or the sampler itself) being bad doesn't necessarily affect the thing that is being measured.

The incorrect behavior would have to be baked into the actual application at some level. I review this code much more thoroughly than the test code.