CT COVERAGE - INITIAL RESULTS

被引:10
作者
BENTLY, WG
MILLER, EF
机构
[1] MILES LABS INC, ELKHART, IN 46515 USA
[2] SOFTWARE RES INC, SAN FRANCISCO, CA 94107 USA
关键词
SOFTWARE TESTING; PATH TESTING; DATA FLOW TESTING; PROGRAM ANALYSIS; DEFECT DETECTION; EVALUATION;
D O I
10.1007/BF00417425
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Software testing techniques based upon automated analysis of control flow are useful for improving software reliability. The fundamental types of control flow analysis, in ascending order of effectiveness, are statement, branch, and path coverage. Automated tools that perform branch coverage analysis are now accepted practice and researchers are exploring the area that exists between branch and path analysis. Path testing is complicated by the huge number of paths in ordinary programs and by anomalies, such as infeasible paths. The Ct testing strategy is a method for obtaining a manageable set of path classes by specifying a minimum iteration count k. The Ct test coverage metric is a measurement of the proportion of Ct path classes that are exercised within a program. This paper describes an initial experiment in which a special, automated tool was used to evaluate the Ct coverage of tests for a C program of significant size. The results of the study showed that high values of branch coverage may not necessarily imply high path coverage, that approximately 15% of the functions analysed were 'too complex' to analyse effectively, and that the majority of the remaining functions achieved on the order of 11% Ct k = 1 coverage. Experimental work in the attainment of high Ct coverage suggests the development of a new, more efficient software testing strategy, which combines Ct path and data flow analysis.
引用
收藏
页码:29 / 47
页数:19
相关论文
共 22 条
[1]  
BAKER AL, 1986, 19TH P ANN HAW INT C, P158
[2]  
BENTLY WG, 1989, P QUALITY WEEK C SAN
[3]  
BENTLY WG, 1988, P QUALITY WEEK C SAN
[4]  
CLARKE LA, 1986, JUL P WORKSH SOFTW T, P23
[5]  
Frankl P. G., 1987, THESIS NEW YORK U NE
[6]  
FRANKL PG, 1986, JUL P ACM SIGSOFT IE, P4
[7]  
Goodenough J. B., 1975, IEEE Transactions on Software Engineering, VSE-1, P156, DOI 10.1109/TSE.1975.6312836
[8]   APPLYING MCCABE COMPLEXITY MEASURE TO MULTIPLE-EXIT PROGRAMS [J].
HARRISON, WA .
SOFTWARE-PRACTICE & EXPERIENCE, 1984, 14 (10) :1004-1007
[9]  
Howden W. E., 1976, IEEE Transactions on Software Engineering, VSE-2, P208, DOI 10.1109/TSE.1976.233816
[10]  
Howden W. E., 1987, FUNCTIONAL PROGRAM T