Towards a 'Safe' Use of Design Patterns to Improve OO Software Testability

  • Authors:
  • Benoit Baudry;Yves Le Sunyé;Jean-Marc Jézéquel

  • Affiliations:
  • -;-;-

  • Venue:
  • ISSRE '01 Proceedings of the 12th International Symposium on Software Reliability Engineering
  • Year:
  • 2001

Quantified Score

Hi-index 0.00

Visualization

Abstract

Design-for-testability is a very important issue in software engineering.It becomes crucial inthe 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 classconfiguration 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 oftesting for conflicts, and of confining their effects to the classes involved in the pattern.