Re:Kent Beck: “I get paid for code that works, not for tests...
by marcosdumay on Thursday December 08, 2016 @11:00AM
(#13131139)
Trivial code does not grow, it gets replaced. If the replacement is non-trivial, test it. If it's trivial, don't. Anyway, you've saved some useless tests that would need to be rewrite on the first change.
Trivial tests may be trivial, but they are numerous: their need grows exponentially with code size. And they generate almost all the false positives you will get.
Re:Kent Beck: “I get paid for code that works, not for tests...
by theparanoid on Thursday December 08, 2016 @10:00AM
(#13130651)
Tests are code and code is a liability.
The DirectX12 api is non-trivial code; their testing has little in common with TDD.
If it's truly trivial code, you should be able to test it trivially, so I'm a little unsure of why this becomes a make-or-break issue for some people. Pretty sure more time and energy is wasted determining if code is trivial and needs to be tested versus just testing the damned thing ;-).