NASA Logo

NTRS

NTRS - NASA Technical Reports Server

Due to the lapse in federal government funding, NASA is not updating this website. We sincerely regret this inconvenience.

Back to Results
An experiment to assess the cost-benefits of code inspections in large scale software developmentThis experiment (currently in progress) is designed to measure costs and benefits of different code inspection methods. It is being performed with a real development team writing software for a commercial product. The dependent variables for each code unit's inspection are the elapsed time and the number of defects detected. We manipulate the method of inspection by randomly assigning reviewers, varying the number of reviewers and the number of teams, and, when using more than one team, randomly assigning author repair and non-repair of detected defects between code inspections. After collecting and analyzing the first 17 percent of the data, we have discovered several interesting facts about reviewers, about the defects recorded during reviewer preparation and during the inspection collection meeting, and about the repairs that are eventually made. (1) Only 17 percent of the defects that reviewers record in their preparations are true defects that are later repaired. (2) Defects recorded at the inspection meetings fall into three categories: 18 percent false positives requiring no author repair, 57 percent soft maintenance where the author makes changes only for readability or code standard enforcement, and 25 percent true defects requiring repair. (3) The median elapsed calendar time for code inspections is 10 working days - 8 working days before the collection meeting and 2 after. (4) In the collection meetings, 31 percent of the defects discovered by reviewers during preparation are suppressed. (5) Finally, 33 percent of the true defects recorded are discovered at the collection meetings and not during any reviewer's preparation. The results to date suggest that inspections with two sessions (two different teams) of two reviewers per session (2sX2p) are the most effective. These two-session inspections may be performed with author repair or with no author repair between the two sessions. We are finding that the two-session, two-person with repair (2sX2pR) inspections are the most expensive, taking 15 working days of calendar time from the time the code is ready for review until author repair is complete, whereas two-session, two-person with no repair (2sX2pN) inspections take only 10 working days, but find about 10 percent fewer defects.
Document ID
19950024821
Acquisition Source
Legacy CDMS
Document Type
Conference Paper
Authors
Porter, A.
(Maryland Univ. College Park, MD, United States)
Siy, H.
(Maryland Univ. College Park, MD, United States)
Toman, C. A.
(Bell Telephone Labs., Inc. Naperville, IL., United States)
Votta, L. G.
(Bell Telephone Labs., Inc. Naperville, IL., United States)
Date Acquired
September 6, 2013
Publication Date
December 1, 1994
Publication Information
Publication: NASA. Goddard Space Flight Center, Proceedings of the 19th Annual Software Engineering Workshop
Subject Category
Computer Programming And Software
Accession Number
95N31242
Funding Number(s)
CONTRACT_GRANT: NAG5-123
Distribution Limits
Public
Copyright
Work of the US Gov. Public Use Permitted.
No Preview Available