Enhancing structural software coverage by incrementally computing branch executability

  • Authors:
  • Mauro Baluda;Pietro Braione;Giovanni Denaro;Mauro Pezzè

  • Affiliations:
  • Università della Svizzera Italiana, Lugano, Switzerland 6900;Università degli Studi di Milano-Bicocca, Milano, Italy 20126;Università degli Studi di Milano-Bicocca, Milano, Italy 20126;Università della Svizzera Italiana, Lugano, Switzerland 6900 and Università degli Studi di Milano-Bicocca, Milano, Italy 20126

  • Venue:
  • Software Quality Control
  • Year:
  • 2011

Quantified Score

Hi-index 0.00

Visualization

Abstract

Structural code coverage criteria have been studied since the early seventies, and now they are well supported by commercial and open-source tools and are commonly embedded in several advanced industrial processes. Most industrial applications still refer to simple criteria, like statement and branch coverage, and consider complex criteria, like modified condition decision coverage, only rarely and often driven by the requirements of certification agencies. The industrial value of structural criteria is limited by the difficulty of achieving high coverage, due to both the complexity of deriving test cases that execute specific uncovered elements and the presence of many infeasible elements in the code. In this paper, we propose a technique that both generates test cases that execute yet uncovered branches and identifies infeasible branches that can be eliminated from the computation of the branch coverage. In this way, we can increase branch coverage to closely approximate full coverage, thus improving its industrial value. The algorithm combines symbolic analysis, abstraction refinement, and a novel technique named coarsening, to execute unexplored branches, identify infeasible ones, and mitigate the state space explosion problem. In the paper, we present the technique and illustrate its effectiveness through a set of experimental results obtained with a prototype implementation.