News for hackers. Stuff that matters.
Re:Why Most Unit Testing is Waste [pdf] by TwoBit on Thursday March 06, 2014 @04:56PM (#7356895)

   >> Throw away tests that haven’t failed in a year.
That's absolutely f*ing crazy. Throwing those tests away makes it impossible for me to know that any changes I make to the implementation are OK.
Re:Why Most Unit Testing is Waste [pdf] by mempko on Thursday March 06, 2014 @08:11PM (#7357822)
Why? Don't you use assertions?
Re:Why Most Unit Testing is Waste [pdf] by smtddr on Thursday March 06, 2014 @08:40PM (#7357941)
No amount of assertions in production code can replace assertions of unit-tests; assuming the unittests are designed to try all known common & edge cases.
Re:Why Most Unit Testing is Waste [pdf] by TwoBit on Friday March 07, 2014 @03:47AM (#7359132)
Also, assertions only flag code that gets executed when you test it. Unless you can be sure that you have tested every possible execution possibility before shipping, you cannot know if after shipping your code will execute something that you missed during testing. This happens a lot.

Additionally, the unit tests allow me to safely maintain the code from the comfort of my own desk. If I relied only on assertions then I would literally have to send changes to all possible users and ask each of them to please test and tell me if they got any assertions. And do this for me three times a week for the next two years.

Re:Why Most Unit Testing is Waste [pdf] by mempko on Friday March 07, 2014 @09:08AM (#7360233)
Who said only?