When to Let the Developer Guide: Trade-offs Between Open and Guided Test Amplification

Conference Paper (2023)
Author(s)

Carolin Brandt (TU Delft - Software Engineering)

D. Wang (Student TU Delft)

A.E. Zaidman (TU Delft - Software Engineering)

Research Group
Software Engineering
Copyright
© 2023 C.E. Brandt, D. Wang, A.E. Zaidman
DOI related publication
https://doi.org/10.1109/SCAM59687.2023.00032
More Info
expand_more
Publication Year
2023
Language
English
Copyright
© 2023 C.E. Brandt, D. Wang, 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)
231-241
ISBN (electronic)
979-8-3503-0506-7
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

Test amplification generates new tests by mutating existing, developer-written tests and keeping those tests that improve the coverage of the test suite. Current amplification tools focus on starting from a specific test and propose coverage improvements all over a software project, requiring considerable effort from the software engineer to understand and evaluate the different tests when deciding whether to include a test in the maintained test suite. In this paper, we propose a novel approach that lets the developer take charge and guide the test amplification process towards a specific branch they would like to test in a control flow graph visualization. We evaluate whether simple modifications to the automatic process that incorporate the guidance make the test amplification more effective at covering targeted branches. In a user study and semi-structured interviews we compare our user-guided test amplification approach to the state-of-the-art open test amplification approach. While our participants prefer the guided approach, we uncover several trade-offs that influence which approach is the better choice, largely depending on the use case of the developer.

Files

When_to_Let_the_Developer_Guid... (pdf)
(pdf | 1.51 Mb)
- Embargo expired in 01-07-2024
License info not available