2 ms·
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'
by masklinn 16y ago
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.