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 you have performed enough coding for one requirement and now we can move to other requirements. If unit tests are written properly and run every time when we carry out minor changes, then we can easily catch any bugs introduced due to change.
- Helps...