News for hackers. Stuff that matters.
Re:Stop Using Mocks by masklinn on Wednesday March 23, 2011 @01:38PM (#2360400)
It does not bother me that my unit tests can't tell me the power just went down or my graphic card is going up in flames. That's not their job at all.

So that's not an issue at all, that's not relevant. The best thing tests can do (and what they should do) is ensure your code behaves "correctly" in the face of invalid or corrupted data, which an unexpected JSON structure would certainly be.

There are no comments on this comment yet.