Unit testing fundamentals for software developers: why unit test, testing phases, and writing automated tests in Java.
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
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.
Sample Junit Testing