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 条
  • [41] Automated Test Case Generation for Java']Java EE Based Web Applications
    Fuchs, Andreas
    TESTS AND PROOFS, TAP 2018, 2018, 10889 : 167 - 176
  • [42] SSTF: A Novel Automated Test Generation Framework using Software Semantics and Syntax
    Nahar, Nadia
    Sakib, Kazi
    2014 17TH INTERNATIONAL CONFERENCE ON COMPUTER AND INFORMATION TECHNOLOGY (ICCIT), 2014, : 69 - 74
  • [43] Automatic Test Data Generation for Unit Testing to Achieve MC/DC Criterion
    Wu, Tianyong
    Yan, Jun
    Zhang, Jian
    2014 EIGHTH INTERNATIONAL CONFERENCE ON SOFTWARE SECURITY AND RELIABILITY, 2014, : 118 - 126
  • [44] Automated Assertion Generation via Information Retrieval and Its Integration with Deep Learning
    Yu, Hao
    Lou, Yiling
    Sun, Ke
    Ran, Dezhi
    Xie, Tao
    Hao, Dan
    Li, Ying
    Li, Ge
    Wang, Qianxiang
    2022 ACM/IEEE 44TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE 2022), 2022, : 163 - 174
  • [45] Automated safety test generation for variant-rich production systems using ECAD
    Ziegltrum, Simon
    Vogel-Heuser, Birgit
    AT-AUTOMATISIERUNGSTECHNIK, 2020, 68 (05) : 375 - 386
  • [46] Choosing the fitness function for the job: Automated generation of test suites that detect real faults
    Salahirad, Alireza
    Almulla, Hussein
    Gay, Gregory
    SOFTWARE TESTING VERIFICATION & RELIABILITY, 2019, 29 (4-5)
  • [47] PSO Based Pseudo Dynamic Method for Automated Test Case Generation Using Interpreter
    Dahiya, Surender Singh
    Chhabra, Jitender Kumar
    Kumar, Shakti
    ADVANCES IN SWARM INTELLIGENCE, PT I, 2011, 6728 : 147 - 156
  • [48] Automated and Optimized Software Test Suite Generation Technique for Structural Testing1
    Devasena, M. S. Geetha
    Gopu, G.
    Valarmathi, M. L.
    INTERNATIONAL JOURNAL OF SOFTWARE ENGINEERING AND KNOWLEDGE ENGINEERING, 2016, 26 (01) : 1 - 13
  • [49] Choosing the fitness function for the job: Automated generation of test suites that detect real faults
    Salahirad, Alireza
    Almulla, Hussein
    Gay, Gregory
    SOFTWARE TESTING VERIFICATION & RELIABILITY, 2020, 30 (7-8)
  • [50] Unit Test Data Generation for C Using Rule-Directed Symbolic Execution
    Ming-Zhe Zhang
    Yun-Zhan Gong
    Ya-Wen Wang
    Da-Hai Jin
    Journal of Computer Science and Technology, 2019, 34 : 670 - 689