10 likes | 19 Views
There is no doubt that unit testing is considered to be productive and rewarding. But, on the flip side, it comes with a few disadvantages too. This does not mean ignoring unit testing, but, rather being more strategic and aware of the outcomes of unit testing, thus saving time and cost. <br>
E N D
What are the disadvantages of unit testing? WHAT IS UNIT TESTING? There is no doubt that unit testing is considered to be productive and rewarding. But, on the flip side, it comes with a few disadvantages too. This does not mean ignoring unit testing, but, rather being more strategic and aware of the outcomes of unit testing, thus saving time and cost. The objective is to provide knowledge and let the developers and testers know as to how unit testing can prove to be less effective in certain scenarios or may not be able to provide justifiable testing outcomes. In this article, you will get to know as to what are the disadvantages of unit testing. FOLLOWING ARE THE DISADVANTAGES OF UNIT TESTING: 1. It is a time-consuming process: Even if one small unit test needs to be developed, it takes quite a bit of time and when it comes to larger ones, the time taken is obvious. 2. The issue with GUI code: When GUI code is being developed, the key thing is to test the code and make sure that it is working as expected. When it comes to unit testing, GUI code is not in line when it comes to the testing part. 3. Quite complex to work upon legacy code: When it comes to performing unit testing on the legacy code, it becomes quite vague because there is no specific beginning and there is no practicality of tests. 4. The maintenance factor: Unit testing Services can prove to be laborious and time-consuming. One of the misconceptions is that labor and time are only required, when the unit test is initially created. 5. All errors cannot be detected: Though unit testing conducted to test the individual units of a code and to a great extent many of the errors are identified, but, not all.