How is unit testing better than just testing the entire output of your application as a whole? -
I do not understand how a unit test might possibly be beneficial. Is not the tester sufficient to examine the entire output instead of the unit tests?
Thank you.
The description you are describing is an integration test. Will the integration test not tell you which part of the application on your large scale is not working properly when your output is no longer correct?
The advantage for unit testing is that you can write a test for each business concept or you need your program to perform the algorithm phase. When someone adds or changes the code in your application, you know immediately which steps, which piece, and possibly even the start of the bug can break the line of code. For that reason the saving of time on maintenance only makes sense, but the bug of that regression does not even have an big advantage (assuming that when you make your software your test is automatically Are running). If you fix a bug, and then specifically write a test to catch that bug, then no one can accidentally start it again.
The combination of integration testing and unit testing is very easy for you at night, especially when you have checked a large piece of code on that day.
Comments
Post a Comment