3 ms·
http://en.wikipedia.org/wiki/Unit_testing http://en.wikipedia.org/wiki/Unit_testing You're criticising unit test for things that unit tests don't do. I hate a
by lotsofcows 13y ago
http://en.wikipedia.org/wiki/Unit_testing http://en.wikipedia.org/wiki/Unit_testing
You're criticising unit test for things that unit tests don't do.
I hate apples. They don't taste like pears.
- waps 13y agoBleh. That definition of unit tests is so bland as to not differentiate between any kind of testing. That definition explicitly states that having a person (like QA?) go through the app and see what happens also constitutes unit testing. And that's bullshit, manual testing is not unit testing. And neither is testing an entire module at a time. A useful discussion on the terminology problem can be found here: http://c2.com/cgi/wiki?StandardDefinitionOfUnitTest http://c2.com/cgi/wiki?StandardDefinitionOfUnitTest Most definitions define unit testing as testing the "smallest piece of code that can be tested in isolation". Then my criticism definitely applies. And given my code reviews, it's obvious that the vast majority of programmers see unit testing as testing every individual function/method in isolation. This actually hides problems by increasing total source code (actual code and the tests + "compromises" for testability) and locks down internal structure of supposedly encapsulated logic. Both are very, very bad things.