When Should One Stop Testing Software?
The DOI matches its Crossref record; 3 of the 3 references it cites were found in a registry or an index.
Abstract
We derive an optimal rule for stopping the testing of a module of software prior to release, based on the trade-off between the cost of continued testing and the expected losses due to any bugs that remain in the released code. Our economic assumptions are that testing costs are perfectly predictable, but of arbitrary form f(t), and that the costs of fixing a bug, both during testing and subsequent to release, are known constants. Our stochastic assumptions are as follows: (a) The total number of bugs in the module (N) is unknown; (b) N has a Poisson distribution with a mean λ that is distributed randomly (across modules) according to a known gamma distribution; (c) given a particular bug, the time it takes to find it during testing is random, with a known distribution G of arbitrary form; and (d) the lifetimes of different bugs are independent. With these assumptions, we find conditions on f and G that ensure that the optimal stopping rule has a simple form, which can be found by a dynamic programming argument. The central condition is that f(G -1(1 - e-y )) is convex while finite. When N is Poisson with λ fixed, the optimal strategy is a fixed time stopping rule. When λ is variable and large with high probability, the optimum rule approaches a simple asymptotic form, namely, stop as soon as k, the observed number of bugs, satisfies k ≤ f′(t)G(t)/cG′(t), where c is the difference between the cost of fixing a bug during testing and the cost incurred by finding it after release. Further, the number of bugs remaining has a Poisson limiting distribution with mean f′(t)(1 - G(t))/cG′(t). We extend the theory to allow for several classes of bugs with different characteristics. We suggest that graphical display of the asymptotic stopping rule, for a selection of values of the cost parameters involved, may prove helpful to persons faced with the problem of managing software development. An example of such a display is given.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Software Reliability: Measurement, Prediction, Application
Musa, D., Iannino, A., & Okumoto, K. (1987) · Cited by 2,091
Jelinski, Z., & Moranda, P. B. (1972) · Elsevier eBooks · doi:10.1016/b978-0-12-266950-7.50028-1 · Cited by 1,070
Software reliability measurement
Musa, J. D. (1979) · Journal of Systems and Software · doi:10.1016/0164-1212(79)90023-2 · Cited by 569
Cited by
A mathematical model of the finding of usability problems
Nielsen, J., & Landauer, T. K. (1993) · Proceedings of the SIGCHI conference on Human factors in computing systems - CHI '93 · doi:10.1145/169059.169166 · Cited by 1,961
“Not only is the Poisson model well-behaved, but it has also been found to describe the finding of traditional programming errors (“bugs”) [1] [2] in software development projects under some conditions.”
BackgroundMethodStopping rules and estimation for recapture debugging with unequal failure rates
CHAO, A., & YANG, M. C. K. (1993) · Biometrika · doi:10.1093/biomet/80.1.193 · Cited by 535
Metadata
- Authors
- Dalal, S. R., & Mallows, C. L.
- Venue
- Journal of the American Statistical Association
- Publisher
- Informa UK Limited
- Published
- 1988-09
- Volume
- 83
- Issue
- 403
- Pages
- 872-879
- ISSN
- 0162-1459 (ISSN-L)
- 1537-274X
- OpenAlex
- W2139289697
- Cited by
- 198
- References
- 3
- FWCI
- 3.42
- Type
- journal article
- Language
- en
- Open access
- closed
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
How to cite
Cite CoChat for the checks on this page, and the paper for its own findings.
- This page
- CoChat. (2026). Citation check: When Should One Stop Testing Software? https://app.cochat.ai/papers/10.1080/01621459.1988.10478676
- The paper
- Dalal, S. R., & Mallows, C. L. (1988). When Should One Stop Testing Software? Journal of the American Statistical Association. https://doi.org/10.1080/01621459.1988.10478676
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.