DEV Community

Cover image for Pros & Cons of Unit Testing

Pros & Cons of Unit Testing

Alex K. on March 18, 2020

Pros: More reusable code and easier debugging. Reduced cost for testing and bug-fixing. Increased efficiency of code improvement and maintenance...
Collapse
 
testree profile image
Roberto Romello

Good one - thank you! Besides all the pros, the main disadvantage is the first point that you've listed here is the most difficult one in unit testing. Of course, each one holds a different opinion for a quality product release. That's true. I agree.