ExLi: An Inline-Test Generation Tool for Java']Java

被引:0
|
作者
Liu, Yu [1 ]
Thimmaiah, Aditya [1 ]
Legunsen, Owolabi [2 ]
Gligoric, Milos [1 ]
机构
[1] Univ Texas Austin, Austin, TX 78712 USA
[2] Cornell Univ, Ithaca, NY USA
来源
COMPANION PROCEEDINGS OF THE 32ND ACM INTERNATIONAL CONFERENCE ON THE FOUNDATIONS OF SOFTWARE ENGINEERING, FSE COMPANION 2024 | 2024年
基金
美国国家科学基金会;
关键词
Inline tests; unit tests; automatic test generation; test carving;
D O I
10.1145/3663529.3663817
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We present ExLi, a tool for automatically generating inline tests, which were recently proposed for statement-level code validation. ExLi is the first tool to support retrofitting inline tests to existing codebases, towards increasing adoption of this type of tests. ExLi first extracts inline tests from unit tests that validate methods that enclose the target statement under test. Then, ExLi uses a coverage-then-mutants based approach to minimize the set of initially generated inline tests, while preserving their fault-detection capability. ExLi works for Java, and we use it to generate inline tests for 645 target statements in 31 open-source projects. ExLi reduces the initially generated 27,415 inline tests to 873. ExLi improves the fault-detection capability of unit test suites from which inline tests are generated: the final set of inline tests kills up to 24.4% more mutants on target statements than developer written and automatically generated unit tests. ExLi is open sourced at https://github.com/EngineeringSoftware/exli and a video demo is available at https://youtu.be/qaEB4qDeds4.
引用
收藏
页码:652 / 656
页数:5
相关论文
empty
未找到相关数据