Carleton University TR SCE-01-02 Revised, September 2002 1 Revisiting Strategies for Ordering Class Integration Testing in the Presence of Dependency Cycles Lionel C. Briand, Yvan Labiche, Yihong Wang Software Quality Engineering Laboratory Carleton University Department of Systems and Computer Engineering 1125 Colonel By Drive Ottawa, ON, K1S 5B6, Canada {briand, labiche, yihong}@sce.carleton.ca ABSTRACT The issue of ordering class integration in the context of integration testing has been discussed by a number of researchers. More specifically, strategies have been proposed to generate a test order while minimizing stubbing. Recent papers have addressed the problem of deriving an integration order in the presence of dependency cycles in the class diagram. Such dependencies represent a practical problem as they make any topological ordering of classes impossible. Three main approaches, aimed at “breaking” cycles, have been proposed. The first one was proposed by Tai and Daniels and is based on assigning a higher-level order according to aggregation and inheritance relationships and a lower-level order according to associations. The second one was proposed by Le Traon et al and is based on identifying strongly connected components in the dependency graph. Among other things, the former approach may result into unnecessary stubbing whereas the latter may lead to breaking cycles by “removing” aggregation or inheritance dependencies, thus leading to complex stubbing. As a result, a third approach, that combines some of the principles of both approaches and addresses some of their shortcomings, was proposed. This paper reviews these strategies (principles are described, advantages and drawbacks are precisely investigated), and provides both analytical and empirical comparisons based on 5 case studies.