Using spanning sets for coverage testing

被引:77
作者
Marré, M [1 ]
Bertolino, A
机构
[1] Univ Buenos Aires, Dept Computac, FCE&N, Buenos Aires, DF, Argentina
[2] Ist Ric Tecnol & Informaz A Faedo, Area Ric, CNR, I-56100 Pisa, Italy
关键词
control flow; coverage criteria; data flow; ddgraph; spanning sets; subsumption;
D O I
10.1109/TSE.2003.1245299
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
A test coverage criterion defines a set E(c) of entities of the program flowgraph and requires that every entity in this set is covered under some test case. Coverage criteria are also used to measure the adequacy of the executed test cases. In this paper, we introduce the notion of spanning sets of entities for coverage testing. A spanning set is a minimum subset of E(c), such that a test suite covering the entities in this subset is guaranteed to cover every entity in E(c). When the coverage of an entity always guarantees the coverage of another entity, the former is said to subsume the latter. Based on the subsumption relation between entities, we provide a generic algorithm to find spanning sets for control flow and data flow-based test coverage criteria. We suggest several useful applications of spanning sets: They help reduce and estimate the number of test cases needed to satisfy coverage criteria. We also empirically investigate how the use of spanning sets affects the fault detection effectiveness.
引用
收藏
页码:974 / 984
页数:11
相关论文
共 25 条
[1]  
Aho A.V., 1974, The Design and Analysis of Computer Algorithms
[2]  
[Anonymous], P 21 S PRINC PROGR L
[3]  
*AR RES GROUP, 2003, AR AN SYST DOWNL
[4]  
Beck Kent, 2003, Test-driven development: by example
[5]  
Beizer B., 2003, Software Testing Techniques
[6]   UNCONSTRAINED EDGES AND THEIR APPLICATION TO BRANCH ANALYSIS AND TESTING OF PROGRAMS [J].
BERTOLINO, A .
JOURNAL OF SYSTEMS AND SOFTWARE, 1993, 20 (02) :125-133
[7]   A case study in branch testing automation [J].
Bertolino, A ;
Mirandola, R ;
Peciola, E .
JOURNAL OF SYSTEMS AND SOFTWARE, 1997, 38 (01) :47-59
[8]   AUTOMATIC-GENERATION OF PATH COVERS BASED ON THE CONTROL FLOW-ANALYSIS OF COMPUTER-PROGRAMS [J].
BERTOLINO, A ;
MARRE, M .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1994, 20 (12) :885-899
[9]   How many paths are needed for branch testing? [J].
Bertolino, A ;
Marre, M .
JOURNAL OF SYSTEMS AND SOFTWARE, 1996, 35 (02) :95-106
[10]  
BERTOLINO A, 1997, P INT QUAL WEEK MAY