While writing code, we have to build testability into our software from the beginning itself. This helps us to test each piece of our code before integrating them together.
Unit testing helps us to do this. This is done on each module of our application. Unit testing is performed isolating each module from one another so that the functionality of each module can be tested separately.
Unit testing establishes an artificial environment and invokes the module under testing. It checks the result returned by the module and compares it against a list of known values or against the results from previous runs of the same test. Unit test ensures that in a complete system, individual parts work as expected.
- summary of Unit Testing, from The Pragmatic Programmer: from Journeyman to Master
Unit testing helps us to do this. This is done on each module of our application. Unit testing is performed isolating each module from one another so that the functionality of each module can be tested separately.
Unit testing establishes an artificial environment and invokes the module under testing. It checks the result returned by the module and compares it against a list of known values or against the results from previous runs of the same test. Unit test ensures that in a complete system, individual parts work as expected.
- summary of Unit Testing, from The Pragmatic Programmer: from Journeyman to Master
No comments:
Post a Comment