DEV Community

Discussion on: Unit Testing - is it necessary

Collapse
 
jonrandy profile image
Jon Randy 🎖️ • Edited

I've barely (almost never actually) used or written unit tests in 26 years of professional development. It's totally possible to not use them

Collapse
 
zakwillis profile image
zakwillis

Hi Jon, for the last 3 years, I have predominantly been building applications for my startup efforts. The only time I write them is;

  • When trying to figure something out.
  • When something is complicated and I may have to go back to it later.
  • When working on a large library where I don't want to host it inside an app yet.

In contract/commercial settings, I can see some benefits - but I think integration testing is better.

Agree with you, probably if you know what you are doing, it is a rare requirement.