Activity Information Perform Unit Test for Bug Fix
DescriptionA unit test covers a particular area of code, and a combination of unit tests can help developers and testers determine the quality of a particular section of written code. Complete unit tests when the code base changes. A completed unit test gives a definitive answer as to whether the code covered by the unit test is working as expected. Attributes| Element Categories | [CMMI Level 3] VER SP 3.1, [CMMI Track 3] Build, [CMMI Track 4] Stabilize, [CMMI Cycle 6] As Needed | | Guidance | Walkthrough: Creating and Running Unit Tests | | Entry Criteria | The unit test is written and validated to represent the code under test: The unit test is written and validated to represent the code under test.
Updated source code to test is available: Updated source code to test is available. | | Exit Criteria | The unit test achieves code coverage test target or the reason why it does not is documented in the appropriate work item (task or bug): The unit test achieves code coverage test target or the reason why it does not is documented in the appropriate work item (task or bug).
All unit tests pass: All unit tests pass.
Updated source code that passes all unit tests: Updated source code that passes all unit tests. | | Is Required | Yes |
StepsIdentify Appropriate Unit Test:
Find the most relevant unit test(s) that correspond to the element under test. Perform a Unit Test:
Run the unit test on the area under test. Analyze Test Results:
As each step is completed, mark each one as pass, fail, skip, warning, or blocked and add comments when needed.
If the test fails because the test was written incorrectly, fix the unit test and run the test on the element under test.
If the test fails because the code under test was written incorrectly, fix the code and rerun the test. Do not open a new bug. Debug Code:
Correct problems introduced when writing code for the task.
Inputs and Outputs| WorkProduct | Input | Output | Allowable States |
|---|
| Unit Test |  |  | (none) |
|
Last modified at 12/19/2007 10:37 AM by Administrator
|
|