Re: Bad expectations (was: Bad code)
I have a somewhat jaundiced view of unit tests. They are only of any use if you are testing the right things - and discovering what the right things are, is the hard part.
This is particularly relevant with sound generation software i.e. soft-synths. One that I was using some years back fell foul of this. Extensive unit tests were set up prior to a major upgrade. After the upgrade the sound of just one of the patches I'd designed changed noticeably. They never did discover what had actually changed, and I had to rework the patch to fit.
Another one that didn't show up, they did fix but with the comment "We didn't think anyone would do that." If it can be done, sooner or later it will be done!