摘要
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' 的科研主题。它们共同构成独一无二的指纹。引用此
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver