ICSE2022
A Scalable t-wise Coverage Estimator
Eduard Baranov, Sourav Chakraborty, Axel Legay, Kuldeep S. Meel, N. Variyam Vinodchandran
6 citations
Abstract
Owing to the pervasiveness of software in our modern lives, software systems have evolved to be highly configurable. Combinatorial testing has emerged as a dominant paradigm for testing highly configurable systems. Often constraints are employed to define the environments where a given system under test (SUT) is expected to work. Therefore, there has been a sustained interest in designing constraint-based test suite generation techniques. A significant goal of test suite generation techniques is to achieve ๐ก-wise coverage for higher values of ๐ก. Therefore, designing scalable techniques that can estimate ๐ก-wise coverage for a given set of tests and/or the estimation of maximum achievable ๐ก-wise coverage under a given set of constraints is of crucial importance. The existing estimation techniques face significant scalability hurdles. The primary scientific contribution of this work is the design of scalable algorithms with mathematical guarantees to estimate (i) ๐ก-wise coverage for a given set of tests, and (ii) maximum ๐ก-wise coverage for a given set of constraints. In particular, we design a scalable framework ApproxCov that takes in a test set U, a coverage parameter ๐ก, a tolerance parameter ๐, and a confidence parameter ๐ฟ, and returns an estimate of the ๐ก-wise coverage of U that is guaranteed to be within (1 ยฑ ๐)-factor of the ground truth with probability at least 1 -๐ฟ. We design a scalable framework ApproxMaxCov that, for a given formula F, a coverage parameter ๐ก, a tolerance parameter ๐, and a confidence parameter ๐ฟ, outputs an approximation which is guaranteed to be within (1 ยฑ ๐) factor of the maximum achievable ๐กwise coverage under F, with probability โฅ 1-๐ฟ. Our comprehensive evaluation demonstrates that ApproxCov and ApproxMaxCov can handle benchmarks that are beyond the reach of current state-ofthe-art approaches. We believe that the availability of ApproxCov and ApproxMaxCov will enable test suite designers to evaluate the effectiveness of their generators and thereby significantly impact the development of combinatorial testing techniques.