What is Unit Testing?
This is part of softare process, can be automated or manual. Unit testing is the role of software developer. developer should test the software after any changes.
When we should do unit testing?
It should be done after coding and before Integration testing.
Advantages of Unit Testing
- It reduce the bugs in production.
- It helps developer to find bugs in development stage, which is early stage of software process. so it save development time.
As a developer i prefer automated unit testing, once you write the code run it again and again. It will help us to do regression testing. In java we can use junit or testng for unit testing.