Skip to main content

Enterprise MSF Agile (with CobiT)

Go Search
Home
  
Enterprise MSF Agile (with CobiT) > Wiki Pages > Activity - Perform a Unit Test (Fix a Bug)  

Activity - Perform a Unit Test (Fix a Bug)

Activity Information

Perform a Unit Test

Description

A unit test covers a particular area of code, and a combination of unit tests can help developers and testers identify 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.

Roles

PerformerDeveloper

Steps

  1. Identify Appropriate Unit Test:
    Find the most relevant unit test(s) that correspond to the element under test.

  2. Perform a Unit Test:
    Run the unit test on the area under test.

  3. Analyze Test Results:
    As each step is completed, mark each one appropriately using either 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.

  4. Debug Code:
    Correct problems introduced when writing code for the task.

Inputs and Outputs

WorkProductInputOutputAllowable States
Code(none)
Unit Test(none)

Predecessors

TypeNameDependency Type
Code the Fix for a BugFinish-Start
Create or Update a Unit TestFinish-Start
Perform Code AnalysisFinish-Start
Write Code for a Development TaskFinish-Start

Successors

TypeNameDependency Type
Refactor CodeStart-Start
Review CodeFinish-Start

Last modified at 1/17/2008 11:18 PM  by Administrator