Composing Unit Tests

Gaelli, Markus; Greevy, Orla; Nierstrasz, Oscar (September 2005). Composing Unit Tests. In: 2nd International Workshop on Software Product Line Testing. Proceedings. Rennes, Frankreich. 26.09.2005.

[img] Text
Seiten aus download.pdf - Published Version
Restricted to registered users only
Available under License Publisher holds Copyright.

Download (116kB)

If we were to apply the testing techniques of object-oriented systems prescribed by the XUnit framework to a car factory, the result would be an inefficient process: A tire would be created, quality assured and then thrown away, only to be recreated later to test the functionality of the whole car. XUnit makes it difficult to reuse intermediate results of low level unit tests. As a consequence a higher level unit test is forced to recreate test scenarios which were already created by lower level unit tests. This duplicated testing effort is time-consuming both for setting up new scenarios and for running the tests. To address this problem we suggest a semi-automatic approach to compose tests. First we describe how we can detect candidates of composable test cases by partially ordering their sets of covered method signatures, then we present techniques to refactor unit tests accordingly.

Item Type:

Conference or Workshop Item (Speech)

Division/Institute:

08 Faculty of Science > Institute of Computer Science (INF)
08 Faculty of Science > Institute of Computer Science (INF) > Software Composition Group (SCG) [discontinued]

UniBE Contributor:

Gälli, Markus, Greevy, Orla, Nierstrasz, Oscar

Subjects:

000 Computer science, knowledge & systems
500 Science > 510 Mathematics

Series:

Avaya Labs Research Technical Report

Language:

English

Submitter:

Manuela Bamert

Date Deposited:

30 Oct 2017 09:28

Last Modified:

02 Mar 2023 23:29

BORIS DOI:

10.7892/boris.104522

URI:

https://boris.unibe.ch/id/eprint/104522

Actions (login required)

Edit item Edit item
Provide Feedback