DocumentCode
625501
Title
Generating Effective Integration Test Cases from Unit Ones
Author
Pezze, Mauro ; Rubinov, Konstantin ; Wuttke, Jochen
Author_Institution
Univ. of Lugano, Lugano, Switzerland
fYear
2013
fDate
18-22 March 2013
Firstpage
11
Lastpage
20
Abstract
Unit testing aims to ensure that methods correctly implement the specified and implied pre- and post-conditions, while integration testing ensures that modules correctly follow interaction protocols. While the generation of unit test cases has been explored extensively in the literature, there is still little work on the generation of integration test cases. In this paper we present a new technique to generate integration test cases that leverages existing unit test cases. Our key observation is that both, unit and integration testing, use method calls as the atoms to construct test cases from. Unit tests contain information on how to instantiate classes in meaningful ways, how to construct arguments for method calls, and what the resulting system state should be after calling methods with those arguments. We use this information to construct more complex test cases that focus on class interactions rather than on individual state transformations caused by single method calls. This paper presents the approach and shows that the generated test cases can find interesting faults, compared to test suites generated with state of the art approaches.
Keywords
program testing; protocols; class interactions; effective integration test cases generation; individual state transformations; interaction protocols; method calls; test suites; unit test cases; Educational institutions; Object recognition; Observers; Protocols; Registers; Software; Testing; automatic test generation; integration testing;
fLanguage
English
Publisher
ieee
Conference_Titel
Software Testing, Verification and Validation (ICST), 2013 IEEE Sixth International Conference on
Conference_Location
Luembourg
Print_ISBN
978-1-4673-5961-0
Type
conf
DOI
10.1109/ICST.2013.37
Filename
6569711
Link To Document