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 条
  • [31] Can Automated Test Case Generation Cope With Extract Method Validation?
    Silva, Indy P. S. C.
    Alves, Everton L. G.
    Machado, Patricia D. L.
    SBES'18: PROCEEDINGS OF THE XXXII BRAZILIAN SYMPOSIUM ON SOFTWARE ENGINEERING, 2018, : 152 - 161
  • [32] Specify and measure, cover and reveal: A unified framework for automated test generation
    Bardin, Sebastien
    Kosmatov, Nikolai
    Marcozzi, Michael
    Delahaye, Mickael
    SCIENCE OF COMPUTER PROGRAMMING, 2021, 207
  • [33] SolAR: Automated test-suite generation for solidity smart contracts
    Driessen, S. W.
    Di Nucci, D.
    Tamburri, D. A.
    Van den Heuvel, W. J.
    SCIENCE OF COMPUTER PROGRAMMING, 2024, 232
  • [34] BugOut: Automated Test Generation and Bug Detection for Low-Code
    Coutinho, Joana
    Lemos, Alexandre
    Terra-Neves, Miguel
    Ribeiro, Andre
    Manquinho, Vasco
    Quintino, Rui
    Matejczyk, Bartlomiej
    2024 IEEE CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION, ICST 2024, 2024, : 373 - 382
  • [35] Automated Test Case Generation for Safety-Critical Software in Scade
    Kurian, Elson
    Braione, Pietro
    Briola, Daniela
    D'Avino, Dario
    Modonato, Matteo
    Denaro, Giovanni
    2023 IEEE/ACM 45TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING: SOFTWARE ENGINEERING IN PRACTICE, ICSE-SEIP, 2023, : 483 - 494
  • [36] Test Image Generation using Segmental Symbolic Evaluation
    Jameel, Tahir
    Lin, Mengxiang
    INTERNATIONAL JOURNAL OF NETWORKED AND DISTRIBUTED COMPUTING, 2014, 2 (03) : 135 - 147
  • [37] Semi-Automated Assessment of SQL Schemas via Database Unit Testing
    Stanger, Nigel
    26TH INTERNATIONAL CONFERENCE ON COMPUTERS IN EDUCATION (ICCE 2018), 2018, : 237 - 246
  • [38] FSX: A Tool for Fine-Grained Incremental Unit Test Generation for C/C plus plus Programs
    Yoshida, Hiroaki
    Tokumoto, Susumu
    Prasad, Mukul R.
    Ghosh, Indradeep
    Uehara, Tadahiro
    FSE'16: PROCEEDINGS OF THE 2016 24TH ACM SIGSOFT INTERNATIONAL SYMPOSIUM ON FOUNDATIONS OF SOFTWARE ENGINEERING, 2016, : 1052 - 1056
  • [39] Automatic Generation of Critical Test Cases for the Development of Highly Automated Driving Functions
    Baumann, Daniel
    Pfeffer, Raphael
    Sax, Eric
    2021 IEEE 93RD VEHICULAR TECHNOLOGY CONFERENCE (VTC2021-SPRING), 2021,
  • [40] An Empirical Study on Automated Test Generation Tools for Java']Java: Effectiveness and Challenges
    Liu, Xiang-Jun
    Yu, Ping
    Ma, Xiao-Xing
    JOURNAL OF COMPUTER SCIENCE AND TECHNOLOGY, 2024, 39 (03) : 715 - 736