3 ms·
> Isn't the whole promise of testing is easier maintenance in the long run? Well, it's not as if the point is regarding testing vs not, it's regarding the bala
by wyldfire 11y ago
> Isn't the whole promise of testing is easier maintenance in the long run?
Well, it's not as if the point is regarding testing vs not, it's regarding the balance of what kind of tests LLVM should have.
LLVM and Clang have extraordinarily well-defined interfaces at their boundary (C/C++/LLVM IR|executables), so writing regression tests is bound to reap great value over time. Writing unit tests, less so. The benefit of unit tests over ones with larger scope is that it's often easier (or possible at all) to write tests that cover uncommon use cases/environments/errors.
A less tangible benefit of unit tests is that it helps guide sufficient decomposition of the design-under-test. From what I've seen, LLVM doesn't need any help in this area, they're extraordinarily well-disciplined here.