跳到主要导航 跳到搜索 跳到主要内容

Shadow pattern: A new design pattern for testing

  • Yong Zhong Tu*
  • , Chen Xi Shao
  • , Wei Tek Tsai
  • , Xiang Dong Hu
  • *此作品的通讯作者
  • University of Science and Technology of China
  • Arizona State University

科研成果: 期刊稿件文章同行评审

摘要

Introduced in this paper is a new design pattern: a shadow for testing object-oriented programs. This pattern creates a shadow object for each object using it. By using this pattern, no additional test driver or test stub is needed. Thus, the pattern allows test scripts to be embedded in the program seamlessly. During testing, the test case can either call the shadow object as test stub or call the actual application code. The test script can make its decision at runtime to select which one to use. These ideas are illustrated in module testing and integration testing.

源语言英语
页(从-至)34-40
页数7
期刊Jisuanji Yanjiu yu Fazhan/Computer Research and Development
41
1
出版状态已出版 - 1月 2004
已对外发布

指纹

探究 'Shadow pattern: A new design pattern for testing' 的科研主题。它们共同构成独一无二的指纹。

引用此