Print Email Facebook Twitter Generating Understandable Unit Tests through End-to-End Test Scenario Carving Title Generating Understandable Unit Tests through End-to-End Test Scenario Carving Author Deljouyi, A. (TU Delft Software Engineering) Zaidman, A.E. (TU Delft Software Engineering) Contributor Moonen, Leon (editor) Newman, Christian (editor) Gorla, Alessandra (editor) Date 2023 Abstract Automatic unit test generators such as EvoSuite are able to automatically generate unit test suites with high coverage. This removes the burden of writing unit tests from developers, but the generated tests are often difficult to understand for them. In this paper, we introduce the MicroTestCarver approach that generates unit tests starting from manual or scripted end-toend (E2E) tests. Using carved information from these E2E tests, we generate unit tests that have meaningful test scenarios and contain actual test data. When we apply our MicroTestCarver approach, we observe that 85% of the generated tests are executable. Through a user study involving 20 participants, we get indications that tests generated with MicroTestCarver are relatively easy to understand. Subject Test GenerationUnit TestingUnderstandabilityReadabilityCarving and Replaying To reference this document use: http://resolver.tudelft.nl/uuid:317e54a1-e776-4d28-8486-b444ad9e9e0b DOI https://doi.org/10.1109/SCAM59687.2023.00021 Publisher IEEE Computer Society - Conference Publishing Services Embargo date 2024-05-27 ISBN 9798350305067 Source Proceedings of the 23rd IEEE International Working Conference on Source Code Analysis and Manipulation (SCAM) Event 23rd IEEE International Working Conference on Source Code Analysis and Manipulation, 2023-10-02 → 2023-10-03, Bogotá, Colombia Series Proceedings - 2023 IEEE 23rd International Working Conference on Source Code Analysis and Manipulation, SCAM 2023 Bibliographical note Green Open Access added to TU Delft Institutional Repository ‘You share, we take care!’ – Taverne project https://www.openaccess.nl/en/you-share-we-take-care Otherwise as indicated in the copyright section: the publisher is the copyright holder of this work and the author uses the Dutch legislation to make this work public. Part of collection Institutional Repository Document type conference paper Rights © 2023 A. Deljouyi, A.E. Zaidman Files PDF Generating_Understandable ... arving.pdf 492.97 KB Close viewer /islandora/object/uuid:317e54a1-e776-4d28-8486-b444ad9e9e0b/datastream/OBJ/view