On the SO blog and podcast, Joel and Jeff discussed the often-overlooked moments when unit testing a particular function is simply not worth the effort. Those times when unit testing a simple function is so complex, unpredictable, or impractical that the cost of the test does not reflect the value of the function. In the case of Joel, in this example, for a complex comparison of images, the quality of compression was simply determined if they decided to write a test.
In what cases did you encounter a situation? Common areas that I can think of are graphical interfaces, page layout, audio testing (testing so that, for example, an audio warning), etc.
I am looking for horrible stories and real real examples, not speculations (for example, I just did). Bonus points, if you or someone who was supposed to write this "impossible" test went ahead and wrote down anyway.
source
share