Classes & TalksToday
Ph.D. Dissertation Defense Talk: Syntactic Adequacy: A Theoretical Foundation for Test Input Selection
Tuesday, December 1 · 10-11 a.m.
- When
- Tuesday, December 1 · 10-11 a.m.
About this event
Speaker: Ben Kushigian Advisor: Rene Just Supervisory Committee: Rene Just (Chair), Jacob O. Wobbrock (GSR, Information School), Michael D Ernst, James Rasmussen Wilcox
Abstract: Test adequacy has traditionally been framed as asking whether a test suite sufficiently tests a program relative to a specification. However, many widely used adequacy criteria, including coverage and mutation testing, are program-based: they assess the test suite using the program under test without reference to its specification. What, then, is the role of adequacy in program-based testing? In the absence of a specification, testing requirements can draw on the program under test or on prior knowledge about likely requirements and programming errors. In this work, we investigate which testing obligations can be derived solely from the program under test. Taking the program as our sole source of testing obligations means we cannot assess program correctness, judge the quality of test assertions, or speculate about functionality the specification requires but the program omits. Testing requirements must instead be grounded in what the program expresses. What a program expresses is a semantic property, and semantic properties of arbitrary programs are generally undecidable. We make two observations that allow us to address this problem. (1) A program’s syntax bounds the behaviors expressible within its structure: a linear expression cannot compute a quadratic, whatever its constants. (2) Unlike semantic properties, syntactic relationships between programs can be established mechanically, through simple operations such as deleting parts of a program, replacing constants, or applying identities. We capture these observations with an ordering on program syntax that respects syntax deletion. An adequate input set must distinguish the program under test from every behaviorally different alternative that is no larger under this ordering. The alternatives are simple to specify, even when distinguishing them remains difficult. We call the resulting notion syntactic adequacy. Syntactic adequacy defines what it means for an input set to be adequate; it is not a criterion to be applied directly. Practical criteria such as coverage and mutation testing can be viewed as feasible approximations of such a definition. We construct an ordering that yields coverage guarantees, recovers polynomial conformance, and requires boundary inputs. We establish conditions under which testing obligations are preserved when computations are composed. Case studies illustrate how adding program structure changes the required inputs. We also investigate diagonal constructions, identified by Davis and Weyuker, which produce families of alternatives that collectively force exhaustive testing. We show limitations of their remedy of excluding alternatives that embed the original program. To address these constructions, we introduce reapplication adequacy, which considers testing obligations across program revisions. We show how reassessing a revised program can expose a particular diagonal alternative without requiring the original input set to anticipate every member of the family.
Listed by Paul G. Allen School of Computer Science & Engineering (Trumba), gathered by the Seattle events calendar.