3 ms·
> "unit testing is a magic bullet" cults The thing is, those unit tests achieve practical utility in those language environments, because without the protectio
by rectang 5y ago
> "unit testing is a magic bullet" cults
The thing is, those unit tests achieve practical utility in those language environments, because without the protections of the type system those kinds of errors bring down systems all the time.
I agree that more rigorous type systems can spare you from having to write a lot of boilerplate tests, and I prefer to work in more strictly typed language environments. Nevertheless, "unit" tests that prove the functionality of individual elements, even if you write fewer of them, still offer a huge ROI. They are damn close to a "magic bullet", and every project that neglects them pays the price.