期刊论文详细信息
Applied Network Science
REDUNET: reducing test suites by integrating set cover and network-based optimization
Andrea Fornaia1  Emiliano Tramontana1  Misael Mongiovì2 
[1] Dipartimento di Matematica e Informatica, University of Catania, Viale A. Doria, 6, 95125, Catania, Italy;ISTC CNR, Via Gaifami, 18, 95126, Catania, Italy;Dipartimento di Matematica e Informatica, University of Catania, Viale A. Doria, 6, 95125, Catania, Italy;
关键词: Test suite reduction;    Static analysis;    Graph analysis;    Network analysis;   
DOI  :  10.1007/s41109-020-00323-w
来源: Springer
PDF
【 摘 要 】

The availability of effective test suites is critical for the development and maintenance of reliable software systems. To increase test effectiveness, software developers tend to employ larger and larger test suites. The recent availability of software tools for automatic test generation makes building large test suites affordable, therefore contributing to accelerating this trend. However, large test suites, though more effective, are resources and time consuming and therefore cannot be executed frequently. Reducing them without decreasing code coverage is a needed compromise between efficiency and effectiveness of the test, hence enabling a more regular check of the software under development. We propose a novel approach, namely REDUNET, to reduce a test suite while keeping the same code coverage. We integrate this approach in a complete framework for the automatic generation of efficient and effective test suites, which includes test suite generation, code coverage analysis, and test suite reduction. Our approach formulates the test suite reduction as a set cover problem and applies integer linear programming and a network-based optimisation, which takes advantage of the properties of the control flow graph. We find the optimal set of test cases that keeps the same code coverage in fractions of seconds on real software projects and test suites generated automatically by Randoop. The results on ten real software systems show that the proposed approach finds the optimal minimisation and achieves up to 90% reduction and more than 50% reduction on all systems under analysis. On the largest project our reduction algorithm performs more than three times faster than both integer linear programming alone and the state-of-the-art heuristic Harrold Gupta Soffa.

【 授权许可】

CC BY   

【 预 览 】
附件列表
Files Size Format View
RO202104285815187ZK.pdf 2618KB PDF download
  文献评价指标  
  下载次数:7次 浏览次数:7次