Unit Testing
http://www.guru99.com/unit-testing.html
Unit testing of software applications is done during the development (coding) of an application.
The objective of unit testing is to isolate a section of code and verify its correctness. In procedural programming a unit maybe a individual function or a procedure.
The goal of unit testing is to isolate each part of program and show that the individual parts are correct. Unit testing is usually performed by the developer.
Why do Unit Testing? Why It is Important?
Sometimes software developers attempt to save time by doing the minimal unit testing. This is a myth because skimping on unit testing leads to higher defect fixing costs during system testing, integration testing and even beta testing after the application is completed. Proper unit testing done during the development stage saves both time and money in the end.
Unit Testing in Software Testing Life Cycle
- It is also called component testing.
- It is performed on standalone module to check whether it is developed correctly.
- Example : Write unit testing for Login function with two fields are username and password. We must do all the possible cases for these fields and Login to check bugs can occur.
- Unit testing is done by developers.