Generating Understandable Unit Tests through End-to-End Test Scenario Carving

Conference Paper (2023)
Author(s)

A. Deljouyi (TU Delft - Software Engineering)

Andy Zaidman (TU Delft - Software Engineering)

Research Group
Software Engineering
Copyright
© 2023 A. Deljouyi, A.E. Zaidman
DOI related publication
https://doi.org/10.1109/SCAM59687.2023.00021
More Info
expand_more
Publication Year
2023
Language
English
Copyright
© 2023 A. Deljouyi, A.E. Zaidman
Research Group
Software Engineering
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. @en
Pages (from-to)
107-118
ISBN (electronic)
9798350305067
Reuse Rights

Other than for strictly personal use, it is not permitted to download, forward or distribute the text or part of it, without the consent of the author(s) and/or copyright holder(s), unless the work is under an open content license such as Creative Commons.

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.

Files

Generating_Understandable_Unit... (pdf)
(pdf | 0.481 Mb)
- Embargo expired in 27-05-2024
License info not available