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 条
  • [1] Automated isolation for white-box test generation
    Honfi, David
    Micskei, Zoltan
    INFORMATION AND SOFTWARE TECHNOLOGY, 2020, 125
  • [2] Generating TCP/UDP Network Data for Automated Unit Test Generation
    Arcuri, Andrea
    Fraser, Gordon
    Galeotti, Juan Pablo
    2015 10TH JOINT MEETING OF THE EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND THE ACM SIGSOFT SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING (ESEC/FSE 2015) PROCEEDINGS, 2015, : 155 - 165
  • [3] A Large-Scale Evaluation of Automated Unit Test Generation Using EvoSuite
    Fraser, Gordon
    Arcuri, Andrea
    ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2014, 24 (02)
  • [4] UnitTestBot: Automated Unit Test Generation for C Code in Integrated Development Environments
    Ivanov, Dmitry
    Babushkin, Alexey
    Grigoryev, Saveliy
    Iatchenii, Pavel
    Kalugin, Vladislav
    Kulikov, Egor
    Kulikov, Egor
    Misonizhnik, Aleksandr
    Mordvinov, Dmitry
    Morozov, Sergey
    Naumenko, Olga
    Pleshakov, Alexey
    Ponomarev, Pavel
    Shmidt, Svetlana
    Utkin, Alexey
    Volodin, Vadim
    Volynets, Arseniy
    2023 IEEE/ACM 45TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING: COMPANION PROCEEDINGS, ICSE-COMPANION, 2023, : 380 - 384
  • [5] Model-Based Test Oracle Generation for Automated Unit Testing of Agent Systems
    Padgham, Lin
    Zhang, Zhiyong
    Thangarajah, John
    Miller, Tim
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2013, 39 (09) : 1230 - 1244
  • [6] Automated generation of unit tests for refactoring
    Walter, B
    Pietrzak, B
    EXTREME PROGRAMMING AND AGILE PROCESSES IN SOFTWARE ENGINEERING, PROCEEDINGS, 2004, 3092 : 211 - 214
  • [7] Automated Test Case Generation for an Autopilot Requirement Prototype
    Giannakopoulou, Dimitra
    Rungta, Neha
    Feary, Michael
    2011 IEEE INTERNATIONAL CONFERENCE ON SYSTEMS, MAN, AND CYBERNETICS (SMC), 2011, : 1825 - 1830
  • [8] Does Automated Unit Test Generation Really Help Software Testers? A Controlled Empirical Study
    Fraser, Gordon
    Staats, Matt
    McMinn, Phil
    Arcuri, Andrea
    Padberg, Frank
    ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2015, 24 (04)
  • [9] Teaching automated test case generation
    Chen, TY
    Kuo, FC
    Zhou, ZQ
    QSIC 2005: FIFTH INTERNATIONAL CONFERENCE ON QUALITY SOFTWARE, PROCEEDINGS, 2005, : 327 - 332
  • [10] A test data generation tool for unit testing of C programs
    Xu, Zhongxing
    Zhang, Jian
    QSIC 2006: SIXTH INTERNATIONAL CONFERENCE ON QUALITY SOFTWARE, PROCEEDINGS, 2006, : 107 - +