Download teacher card What is unit testing?: –
Unit testing is a method of software testing that tests the smallest part of a software application (which we call units).
Simply put, “unit testing is testing in which the program is broken down into pieces, and each piece is closely tested.”
The main purpose of this testing is to ensure that the source code of each unit of software is correct and can be used.
Earlier adhoc tools were used to test units but nowadays frameworks (Java Framework, .NET Framework and PHP Framework etc.) are used to test units.
Unit tests are written and performed by developers and the WHITE BOX TESTING method is used to do this.
The thing to remember here is that “unit testing takes a lot of time and requires a lot of patience.”
This testing is very effective as most of the defects are identified by its use.
Unit testing is usually done after integration testing.
Advantage of unit testing in Hindi: –
The following are the benefits of unit testing: –
1: -With this testing we find defects and bugs in the software in the early stages, later it becomes very difficult to find defects and bugs.
2: -This makes the coding process more effective and agile so that we can add more and more features to the software.
3: -When we do unit testing, we need very little manual testing. Anyway manual testing is very boring and expensive.
4: -We can improve the design of the software without breaking the design through this testing.
NIDAN KASOTI REPORT CARD:- (SAT)
5: -When we detect bugs in advance, it saves us time and cost.
6: -It increases the efficiency of the testing code and makes it easier to maintain.
7: -An advantage of this testing is that it provides us with updated documentation of the software.