DyGen: Automatic generation of high-coverage tests via mining gigabytes of dynamic traces

23Citations
Citations of this article
20Readers
Mendeley users who have this article in their library.
Get full text

Abstract

Unit tests of object-oriented code exercise particular sequences of method calls. A key problem when automatically generating unit tests that achieve high structural code coverage is the selection of relevant method-call sequences, since the number of potentially relevant sequences explodes with the number of methods. To address this issue, we propose a novel approach, called DyGen, that generates tests via mining dynamic traces recorded during program executions. Typical program executions tend to exercise only happy paths that do not include error-handling code, and thus recorded traces often do not achieve high structural coverage. To increase coverage, DyGen transforms traces into parameterized unit tests (PUTs) and uses dynamic symbolic execution to generate new unit tests for the PUTs that can achieve high structural code coverage. In this paper, we show an application of DyGen by automatically generating regression tests on a given version of software. © 2010 Springer-Verlag.

Cite

CITATION STYLE

APA

Thummalapenta, S., De Halleux, J., Tillmann, N., & Wadsworth, S. (2010). DyGen: Automatic generation of high-coverage tests via mining gigabytes of dynamic traces. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 6143 LNCS, pp. 77–93). https://doi.org/10.1007/978-3-642-13977-2_8

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free