Test Coverage Analysis: A Method for Generic Reporting

G.M. Khan and S.K. Aggarwal (India)

Keywords

Test Coverage, Program Testing, Block Struc tured Languages, Software Engineering, Control Structure

Abstract

A test coverage analyzer speeds up the software testing process and minimizes the cost. The development steps for most of the test coverage analyzers are similar for any block structured language. This indicates the potential for a generic technique for test coverage analyzer development. Most of the commonly used coverage like path coverage, branch coverage, block coverage, function coverage, loop coverage, deal with the control structure representation of the program. We can generate report for these coverages with the help of block trace and the control structure representation. The processing done on control structure remains same for generating a coverage report for all block structured lan guage. Control structure representation of programs can easily be generated from the grammar of the language instrumented for block coverage. Using the control structure representation and the block trace generated from the block coverage analysis, our tech nique can be used to generate report for coverage like path cov erage, block coverage, branch coverage, loop coverage, function coverage, etc.. We have implemented our technique to generate the report for path coverage. The results had shown a great reduc tion in development time for path coverage analyzer for a block structured language. After developing the reporting mechanism for all other coverage also (using our technique), one need not develop all these coverage analyzers for a new block structured language. Thus, only the block coverage analyzer and control structure generator are to be developed for a new block structured language.

Important Links:



Go Back