NASA-STD 2202-93, Software Formal Inspection Standard, is currently being updated and revised to include lessons that have been learned by practitioners over the last decade.
The creators of the updated NASA-STD 2202-93, Software Formal Inspection Standard, suggest several best practices related to the collection and the use of inspection data.
This requirement along with SWE-119 collects effort, number of participants, defects, number and types of defects found, pass/fail, and identification in order to ensure the effectiveness of the inspection. Where peer reviews/inspections yield less than expected results, some questions to address may include:
- Are peer reviews/inspections being deployed for the appropriate artifacts? As described in the rationale for SWE-087, this process often is most beneficial when applied to artifacts such as requirements and test plans.
- How are peer reviews/inspections being applied with respect to other verification and validation (V&V) activities? It may be worth considering whether this process is being applied only after other approaches to quality assurance (e.g., unit testing) that are already finding defects, perhaps less cost-effectively.
- Are peer review/inspection practices being followed appropriately? Tailoring away key parts of the inspection process (e.g., planning or preparation), or undertaking inspections with key expertise missing from the team, will not produce the best results.
As with other forms of software measurement, best practices for ensuring that the collection and analysis of peer review/inspection metrics are done well include:
- There need to be clear triggers as to when the metrics are gathered and analyzed (e.g., after every inspection; once per month).
- It needs to be clear who has been assigned to do this task.
- The units of measure are recorded consistently, e.g., one inspection does not record effort in person-hours and another in calendar-days.
- Measures need to be checked for consistency once collected, and for outliers it needs to be investigated whether the data was entered correctly and the correct definitions were applied.
Best practices related to the collection and analysis of inspection data include:
- The moderator is to be responsible for compiling and reporting the inspection data.
- The project manager explicitly specifies the location and the format of the recorded data.
- Inspections are checked for process compliance using the collected inspection data, for example to verify that:
- Any inspection team consists of at least of three persons.
- Any inspection meeting is limited to approximately 2 hours, and if the discussion looks likely to extend far longer, the remainder of the meeting is rescheduled for another time when inspectors can be fresh and re-focused.
- The rate of inspection adheres to the recommended or specified rate for different inspection types.
- A set of analyses is performed periodically on the recorded data to monitor progress (i.e., number of inspection planned versus completed) and to understand the costs and benefits of inspection.
- The outcome of the analyses is leveraged to support the continuous improvement of the inspection process.
In an acquisition context, there are several important considerations for assuring proper inspection usage by software provider(s):
- The metrics to be furnished by software provider(s) must be specified in the contract.
- It must be clear and agreed upon ahead of time whether or not software providers can define their own defect taxonomies. If providers may use their own taxonomy, request the software providers furnish the definition or the data dictionary of the taxonomy. It is also important (especially when the provider team contains subcontractors) to ensure that consistent definitions are used for: defect types; defect severity levels; effort reporting (how comprehensive or restrictive are the activities that are part of the actual inspection).
Additional guidance regarding software peer review/inspection measures can be found in the guidebook section for SWE-119.
Consult Center Process Asset Libraries (PALs) for Center-specific guidance and resources, such as templates, related to peer reviews and inspections.