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.

Pezze', M., Rubinov, K., Wuttke, J. (2013). Generating Effective Integration Test Cases from Unit Ones. In Proceedings of the 6th International Conference on Software Testing Verification and Validation (pp.11-20). IEEE Press [10.1109/ICST.2013.37].

Generating Effective Integration Test Cases from Unit Ones

PEZZE', MAURO;
2013

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.
paper
Software testing, Integration testing, Test case generation
English
IEEE International Conference on Software Testing
2013
Le Traon, Y; Baudry, B; Orso, A
Le Traon, Y; Baudry, B; Orso, A
Proceedings of the 6th International Conference on Software Testing Verification and Validation
2013
11
20
6569711
none
Pezze', M., Rubinov, K., Wuttke, J. (2013). Generating Effective Integration Test Cases from Unit Ones. In Proceedings of the 6th International Conference on Software Testing Verification and Validation (pp.11-20). IEEE Press [10.1109/ICST.2013.37].
File in questo prodotto:
Non ci sono file associati a questo prodotto.

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/10281/43682
Citazioni
  • Scopus 20
  • ???jsp.display-item.citation.isi??? 12
Social impact