Towards a 'safe' use of design patterns to improve oo software testability

Benoit Baudry 1 Yves Le Traon 1 Gerson Sunyé 1 Jean-Marc Jézéquel 1
1 TRISKELL - Reliable and efficient component based software engineering
IRISA - Institut de Recherche en Informatique et Systèmes Aléatoires, Inria Rennes – Bretagne Atlantique
Abstract : Design-for-testability is a very important issue in software engineering. It becomes crucial in the case of OO designs where control flows are generally not hierarchical, but are diffuse and distributed over the whole architecture. We introduce the concept of a "testing conflict" when potentially concurrent client/supplier relationships between the same classes along different paths exist in a system. Such conflicts may be hard to test, especially when dynamic binding and polymorphism are involved. We describe the conflicts using topological class configuration diagrams. An overall architecture is represented as a combination of the initial design and several patterns. We focus on the design patterns as coherent subsets in the architecture, and we explain how their use can provide a way for limiting the complexity of testing for conflicts, and of confining their effects to the classes involved in the pattern.
Document type :
Conference papers
Complete list of metadatas

Cited literature [4 references]  Display  Hide  Download

https://hal.inria.fr/hal-00794514
Contributor : Jean-Marc Jézéquel <>
Submitted on : Tuesday, February 26, 2013 - 9:51:20 AM
Last modification on : Friday, November 16, 2018 - 1:30:10 AM
Long-term archiving on : Sunday, April 2, 2017 - 5:12:39 AM

File

Baudry01b.pdf
Files produced by the author(s)

Identifiers

  • HAL Id : hal-00794514, version 1

Citation

Benoit Baudry, Yves Le Traon, Gerson Sunyé, Jean-Marc Jézéquel. Towards a 'safe' use of design patterns to improve oo software testability. Proceedings of ISSRE 2001, Nov 2001, RENNES, France. ⟨hal-00794514⟩

Share

Metrics

Record views

510

Files downloads

275