|
|
|
|
|
by Kepouick
1292 days ago
|
|
With plain logic application, writing good unit tests is much harder than writing good code.
Probably by a magnitude of 10 or more. Think about it, you have to surround every path in code by a test case !
You have to create mocks everywhere and end up consuming pretty much the whole team time in writing and maintaining tests, whereas in less time through code reviews/rewrites you could have fixed several issues, improved readability, improved team knowledge, facilitate long term support, and so on... In software real troubles comes from integration, not much unitary stuff (unless you praise Monkey coding). And for Linux, it is not just a plain logic application but a kernel that runs on different hardware and has huge base of users and applications. Testing the thing as whole is the only thing that matters. Releasing alpha and beta software is a much more sound, rational and efficient approach. IT industry is (or at least was) organized to test before production. I am certainly not against unit testing. It remains a wise approach for piece of software that need to be glued in stone forever or have super bounded in/out outcome (eg: bank transfers). But it is nothing more than a tool that you might use or not based on situations. Certainly never a one fit all solution ! |
|