Sciweavers

TOOLS
2009
IEEE

Reusing and Composing Tests with Traits

14 years 7 months ago
Reusing and Composing Tests with Traits
Single inheritance often forces developers to duplicate code and logic. This widely recognized situation affects both business code and tests. In a large and complex application whose classes implement many groups of methods (protocols), duplication may also follow the application’s idiosyncrasies, making it difficult to specify, maintain, and reuse tests. The research questions we faced are (i) how can we reuse test specifications across and within complex inheritance hierarchies, especially in presence of orthogonal protocols; (ii) how can we test interface behavior in a modular way; (iii) how far can we reuse and parametrize composable tests. In this paper, we compose tests out of separately specified behavioral units of reuse —traits. We propose test traits, where: (i) specific test cases are composed from independent specifications; (ii) executable behavior specifications may be reused orthogonally to the class hierarchy under test; (iii) test fixtures are external to t...
Stéphane Ducasse, Damien Pollet, Alexandre
Added 21 May 2010
Updated 21 May 2010
Type Conference
Year 2009
Where TOOLS
Authors Stéphane Ducasse, Damien Pollet, Alexandre Bergel, Damien Cassou
Comments (0)