Supporting unit test generation via automated isolation

被引:0
作者
Honfi D. [1 ,2 ]
Micskei Z. [1 ]
机构
[1] Department of Measurement and Information Systems, Faculty of Electrical Engineering and Informatics, Budapest University of Technology and Economics, Budapest
[2] MTA-BME Lendület Cyber-Physical Systems Research Group, Budapest
来源
Periodica polytechnica Electrical engineering and computer science | 2017年 / 61卷 / 02期
关键词
Isolation; Mocking; Symbolic execution; Testing; Unit testing;
D O I
10.3311/PPee.9768
中图分类号
学科分类号
摘要
Testing is a significantly time-consuming, yet commonly employed activity to improve the quality of software. Thus, techniques like dynamic symbolic execution were proposed for generating tests only from source code. However, current approaches usually could not create thorough tests for software units with dependencies (e.g. calls to file system or external services). In this paper, we present a novel approach that synthesizes an isolation sandbox, which interacts with the test generator to increase the covered behaviour in the unit under test. The approach automatically transforms the code of the unit under test, and lets the test generator choose values for parameters in the calls to dependencies. The paper presents a prototype implementation that collaborates with the IntelliTest test generator. The automated isolation is evaluated on source code from open-source projects. The results show that the approach can significantly increase the code coverage achieved by the generated tests.
引用
收藏
页码:116 / 131
页数:15
相关论文
共 50 条
  • [21] Automated Test Case Generation for Programmable Logic Controller Code
    Suresh, Varsha P.
    Chakrabarti, Sujit
    Jetley, Raoul
    PROCEEDINGS OF THE 12TH INNOVATIONS ON SOFTWARE ENGINEERING CONFERENCE (ISEC), 2019,
  • [22] Automated Test Generation on Path-based Symbolic Execution
    Min, Zhang
    Min, Fu
    2014 5TH IEEE INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING AND SERVICE SCIENCE (ICSESS), 2014, : 845 - 848
  • [23] Automated test data generation using a scatter search approach
    Blanco, Raquel
    Tuya, Javier
    Adenso-Diaz, Belarmino
    INFORMATION AND SOFTWARE TECHNOLOGY, 2009, 51 (04) : 708 - 720
  • [24] ARTE: Automated Generation of Realistic Test Inputs for Web APIs
    Alonso, Juan C.
    Martin-Lopez, Alberto
    Segura, Sergio
    Garcia, Jose Maria
    Ruiz-Cortes, Antonio
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2023, 49 (01) : 348 - 363
  • [25] From TARA to Test: Automated Automotive Cybersecurity Test Generation Out of Threat Modeling
    Marksteiner, Stefan
    Schmittner, Christoph
    Christl, Korbinian
    Nickovic, Dejan
    Sjodin, Mikael
    Sirjani, Marjan
    7TH ACM COMPUTER SCIENCE IN CARS SYMPOSIUM, CSCS 2023, 2023,
  • [26] An orchestrated survey of methodologies for automated software test case generation
    Anand, Saswat
    Burke, Edmund K.
    Chen, Tsong Yueh
    Clark, John
    Cohen, Myra B.
    Grieskamp, Wolfgang
    Harman, Mark
    Harrold, Mary Jean
    McMinn, Phil
    Bertolino, Antonia
    Li, J. Jenny
    Zhu, Hong
    JOURNAL OF SYSTEMS AND SOFTWARE, 2013, 86 (08) : 1978 - 2001
  • [27] Output Sampling for Output Diversity in Automatic Unit Test Generation
    Menendez, Hector D.
    Boreale, Michele
    Gorla, Daniele
    Clark, David
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2022, 48 (01) : 295 - 308
  • [28] On guiding the augmentation of an automated test suite via mutation analysis
    Smith, Ben H.
    Williams, Laurie
    EMPIRICAL SOFTWARE ENGINEERING, 2009, 14 (03) : 341 - 369
  • [29] Exploring Automated Assertion Generation via Large Language Models
    Zhang, Quanjun
    Sun, Weifeng
    Fang, Chunrong
    Yu, Bowen
    Li, Hongyan
    Yan, Meng
    Zhou, Jianyi
    Chen, Zhenyu
    ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2025, 34 (03)
  • [30] On guiding the augmentation of an automated test suite via mutation analysis
    Ben H. Smith
    Laurie Williams
    Empirical Software Engineering, 2009, 14 : 341 - 369