DocumentCode
1593134
Title
Mutation Analysis of Parameterized Unit Tests
Author
Xie, Tao ; Tillmann, Nikolai ; De Halleux, Jonathan ; Schulte, Wolfram
Author_Institution
Dept. of Comput. Sci., North Carolina State Univ., Raleigh, NC
fYear
2009
Firstpage
177
Lastpage
181
Abstract
Recently parameterized unit testing has emerged as a promising and effective methodology to allow the separation of (1) specifying external, black-box behavior (e.g., assumptions and assertions) by developers and (2) generating and selecting internal, white-box test inputs (i.e., high-code-covering test inputs) by tools. A parameterized unit test (PUT) is simply a test method that takes parameters, specifies assumptions on the parameters, calls the code under test, and specifies assertions. The test effectiveness of PUTs highly depends on the way that they are written by developers. For example, if stronger assumptions are specified, only a smaller scope of test inputs than intended are generated by tools, leading to false negatives in terms of fault detection. If weaker assertions are specified, erroneous states induced by the test execution do not necessarily cause assertion violations, leading to false negatives. Detecting these false negatives is challenging since the insufficiently written PUTs would just pass. In this paper, we propose a novel mutation analysis approach for analyzing PUTs written by developers and identifying likely locations in PUTs for improvement. The proposed approach is a first step towards helping developers write better PUTs in practice.
Keywords
program testing; software fault tolerance; black-box behavior; fault detection; mutation analysis; parameterized unit testing; software reliability; white-box test inputs; Automatic testing; Computer science; Conferences; Fault detection; Genetic mutations; Life testing; Software reliability; Software testing; USA Councils; Writing; Unit testing; mutation testing; parameterized unit testing; test generation;
fLanguage
English
Publisher
ieee
Conference_Titel
Software Testing, Verification and Validation Workshops, 2009. ICSTW '09. International Conference on
Conference_Location
Denver, CO
Print_ISBN
978-1-4244-4356-7
Type
conf
DOI
10.1109/ICSTW.2009.43
Filename
4976384
Link To Document