· 2014
Are mutants a valid substitute for real faults in software testing?
- 595citations
- 2014year
Short summary
A test suite's ability to detect artificial 'mutants' is statistically correlated with its ability to detect real software faults, even when accounting for code coverage.
AI-generated from the title and abstract; the full text is not read.
Key points
- Mutants are artificial faults used in software testing research as a proxy for real faults.
- Experiments used 357 real faults in 5 open-source applications (321,000 lines of code).
- A statistically significant correlation was found between mutant detection and real fault detection.
- This correlation was observed independently of code coverage effects.
AI-generated from the title and abstract; the full text is not read.
Abstract
A good test suite is one that detects real faults. Because the set of faults in a program is usually unknowable, this definition is not useful to practitioners who are creating test suites, nor to researchers who are creating and evaluating tools that generate test suites. In place of real faults, testing research often uses mutants, which are artificial faults -- each one a simple syntactic variation -- that are systematically seeded throughout the program under test. Mutation analysis is appealing because large numbers of mutants can be automatically-generated and used to compensate for low quantities or the absence of known real faults. Unfortunately, there is little experimental evidence to support the use of mutants as a replacement for real faults. This paper investigates whether mutants are indeed a valid substitute for real faults, i.e., whether a test suite’s ability to detect mutants is correlated with its ability to detect real faults that developers have fixed. Unlike prior studies, these investigations also explicitly consider the conflating effects of code coverage on the mutant detection rate. Our experiments used 357 real faults in 5 open-source applications that comprise a total of 321,000 lines of code. Furthermore, our experiments used both developer-written and automatically-generated test suites. The results show a statistically significant correlation between mutant detection and real fault detection, independently of code coverage. The results also give concrete suggestions on how to improve mutation analysis and reveal some inherent limitations.
The authors' abstract, as published at the source., 2014 · DOI ↗
Continue with a free account
Ask the paper: 3 free questions a day about this paper; save it, get its citation, new summaries every day for your field. Takeaways are Premium.
Continue free on the webSign in with Google or Apple; no card needed. You come back to this paper.
On your phone:
Field: Software
SoftwareComputer Science