Computer Engineering is coming soon

We're still writing and reviewing the notes for every subject, and we'll open it when every subject is ready. Meanwhile you can practise aptitude, ask Aria about any subject, or see the branches that are ready.

Test reporting and configuration management

Clear, exam-ready notes on test reporting and configuration management: definitions, measures (DRE, defect density), CM activities (versioning, baselines, change control), worked examples, common mistakes and exam tips.

Drafted with Aria, reviewed by the AiCanCode.org team · Updated . How we write and check our notes. Spotted an error? Use Give Feedback at the bottom of the page.

Why it matters

Software development teams must communicate test results and keep the code and its artifacts under controlled change. A clear test report lets engineers and managers decide whether software is ready to ship; configuration management (CM) ensures every build, document and test artifact can be reproduced and traced. Engineers use these every day in development, release, maintenance, audits and post-release defect analysis.

Key ideas

Start with clear definitions (each term defined before use):

  • Test report: a formal document that records the results of testing activities for a given scope and time. It must state what was tested, how it was tested, what passed/failed, unresolved risks and suggested next actions.

  • Test summary report: a high-level test report focused on decisions (go/no-go) and covering scope, overall results, status of entry/exit criteria, outstanding defects and risks.

  • Defect report (incident report/bug report): a record of an observed discrepancy between expected and actual behaviour, including steps to reproduce, severity, priority, environment and status.

  • Configuration management (CM): the set of processes and tools that identify, control, audit and track configuration items (CIs) of a software system throughout its lifecycle.

  • Configuration status accounting (CSA): the activity of recording and reporting the status of CIs and change requests throughout their lifecycle.

  • Configuration audit: verification (functional and physical) that CIs and baselines conform to requirements and documentation.

  • Configuration item (CI): any artifact under CM control (source files, build scripts, test data, documents, environments).

  • Baseline: a formally reviewed and agreed CI snapshot that can be changed only through controlled procedures. A baseline is a reference point for future changes.

  • Version: an identified revision of a CI (often numbered). Versions allow tracking changes over time.

  • Branch: a divergent line of development in version control, used to isolate changes.

  • Merge: combining changes from different branches into one.

  • Change request (CR): a formal proposal to alter a baseline; it includes rationale, impact analysis, approval status.

  • Build: a set of compiled and packaged CIs (code + resources) produced to create a runnable artifact.

  • Release: a build promoted for distribution to users or a higher environment (staging, production).

  • Traceability matrix: a mapping between artifacts (requirements ↔ test cases ↔ defects ↔ builds) that proves coverage and origin of changes.

Exact statements and assumptions universities expect:

  1. Definition statement for CM (exact style): "Configuration management is the discipline of identifying configuration items, controlling changes to them, recording and reporting their status, and auditing configurations to verify conformance to requirements." Assumption: CIs are uniquely identifiable.

  2. Test reporting requirement (exact style): "A test report shall contain: scope, test schedule, test environment/configuration, entry/exit criteria status, test summary metrics and coverage achieved, open defects with severity/priority, risks and recommendations." Assumption: tests executed according to test plan; metrics collected consistently.

  3. Defect Removal Efficiency (DRE) definition (exact style): "DRE is the proportion of defects found and removed before release compared with total defects (pre-release + post-release)." Assumption: defects are correctly attributed to phases and duplicate reports removed.

Diagrams to draw (describe exactly):

  • Version-tree diagram for branching: draw a horizontal time line. Draw a main trunk labeled main or master. At some point draw a branch upward labeled feature/X. Show commits as small nodes along each line. Show a merge arrow from feature/X back into main with a merge node. Label nodes with version numbers (v1.2.0, v1.3.0).

  • CM process flowchart: draw boxes in sequence: Identify CI → Baseline → Change request → Impact analysis → Approve/Reject → Implement change → Build → Test → Update baseline. Use arrows between boxes and label decision points (Approve/Reject).

Formulas

DRE = (D_pre) / (D_pre + D_post)

  • D_pre = number of defects found and fixed before release; D_post = defects found in production after release. Unit: (ratio, no units). Applies when defects are properly counted and duplicates removed.

DRE (%) = 100 · (D_pre) / (D_pre + D_post)

  • Same symbols; result in percent. Use when reporting efficiency as a percent.

Defect density = Defects_total / Size

  • Defects_total = number of defects found in a measured period; Size = size measure (KLOC or FP). Unit: defects per KLOC (defects/KLOC) or defects per function point. Applies when size metric is consistent.

MTTR = Total downtime / Number of incidents

  • MTTR = mean time to repair (or restore). Unit: time (hours). Applies for operational support metrics.

MTBF = Total operational time / Number of failures

  • MTBF = mean time between failures. Unit: time. Applies for reliability reporting.

Syntax to remember for common version-control tasks (example git commands you may be asked to list):

  • git clone <repo> — copy repository
  • git checkout -b <branch> — create and switch to a new branch
  • git commit -m "message" — record changes
  • git merge <branch> — merge another branch into current
  • git tag -a v1.2.0 -m "release 1.2.0" — tag a release

(NOTE: these are typical; specific workflows differ by team.)

Worked examples

Example 1 — DRE numeric (university exam style)

Given: pre-release defects found and fixed D_pre = 180. Defects reported in production in first month after release D_post = 20.

  1. Formula: DRE = D_pre / (D_pre + D_post).
  2. Substitute: DRE = 180 / (180 + 20) = 180 / 200.
  3. Compute: 180 / 200 = 0.9.
  4. Convert to percent: DRE (%) = 100 · 0.9 = 90%.

Final answer: DRE = 90%.

Example 2 — Defect density

Given: A component has 60 defects found during testing. The component size = 12000 lines of code (LOC). Use KLOC for density.

  1. Convert size: 12000 LOC = 12 KLOC.
  2. Formula: Defect density = Defects_total / Size.
  3. Substitute: Defect density = 60 / 12 = 5.

Final answer: 5 defects/KLOC.

Example 3 — CM branching and merge trace (algorithmic trace)

Situation: main has commit sequence A→B→C (tag v1.0). A feature branch is created at B and gets commits f1→f2. A bugfix branch is created at C with commit b1. We must merge bugfix back into main and then merge main into the feature branch to keep it up to date.

Steps (trace):

  1. Start: main: A-B-C (C tagged v1.0); feature branch off B: B-f1-f2; bugfix branch off C: C-b1.
  2. Merge bugfix into main: checkout main, git merge bugfix → main now A-B-C-m1 (m1 is a merge commit with parents C and b1).
  3. Tag release if needed: git tag -a v1.0.1 -m "bugfix" attached to m1.
  4. Update feature branch: checkout feature, git merge main → feature becomes B-f1-f2-m2 where m2 is merge commit resolving changes from b1 into feature.

Result: main contains bugfix and is tagged; feature branch has integrated latest bugfix and can continue work.

This step-by-step trace should be drawn as the version-tree diagram described earlier.

Common mistakes

  • Counting duplicate defect reports as separate defects (inflate numbers). De-duplicate before metrics.
  • Leaving out environment details in a defect report (OS, DB, build id) — makes reproduction hard.
  • Omitting traceability links in reports: a test report must reference requirement IDs or test case IDs for clarity.
  • Thinking CM is only versioning: CM also includes identification, change control, auditing and status accounting.
  • Reporting only counts without recommendation: test summary must include go/no-go recommendation or list of blocked risks.

For your exam

Question types you will see:

  • Definitions and short notes (define CM, baseline, test report)
  • Process descriptions (draw and explain CM flowchart; show branching diagram)
  • Numerical calculations (DRE, defect density, MTTR)
  • Scenario questions (given a branching scenario, show merge steps and commands)
  • Long questions asking for a model test report contents or for a change control process.

What full-marks answers include:

  • For definitions: concise sentence with the term bolded and its purpose and an assumption (e.g., "CM is ..." and assume unique IDs).
  • For diagrams: labelled sketch of version tree or CM flowchart and explanation of each node/box.
  • For DRE/defect density numericals: write formula first, substitute numbers, show calculation steps and final value with units (defects/KLOC or %).
  • For process answers: list steps in correct order and describe documents produced (CR, impact analysis, approval record).

Link to other topics (do not re-teach): refer to Test planning and test strategy for what to include in scope; Defect life cycle and bug tracking for defect states; Release and build issues relate to Test automation and frameworks and tools like Git, and to Release management covered under SQA tasks and the SQA plan.

Quick check

  1. Define baseline in one sentence.
  2. Write the DRE formula and explain what each symbol means.
  3. In version control, what command creates a new branch and switches to it? (one-line answer)

Answers: 1) A baseline is a formally reviewed and agreed snapshot of configuration items used as a reference for further development and change control. 2) DRE = D_pre / (D_pre + D_post) where D_pre = defects found before release, D_post = defects found after release. 3) git checkout -b <branch> (typical git command).

Finished this topic? Mark it so your progress, study plan and readiness keep up.

Stuck on something here?