Benefits and pitfalls

We have seen how easy it is to create test cases, run them, and analyze the report. Every framework has some benefits and pitfalls. In this section, we will look at some generic benefits and pitfalls.

Benefits of unit testing

The following are a few benefits of using unit testing for our projects:

  • Quickly making big changes: We can make big changes easily if we have included unit tests in system. As we know, it works properly because we have run the tests, we simply need to make sure that its working now by just running test again.
  • Boost your confidence: Unit testing helps you to boost up your confidence about requirements completion. It helps you to make a decision about when you can stop coding. Tests give you confidence that ...

Get Test-Driven JavaScript Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.