计算机科学 > 软件工程
[提交于 2010年11月30日]
标题:Testing by C++ template metaprograms
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Testing is one of the most indispensable tasks in software engineering. The role of testing in software development has grown significantly because testing is able to reveal defects in the code in an early stage of development. Many unit test frameworks compatible with C/C++ code exist, but a standard one is missing. Unfortunately, many unsolved problems can be mentioned with the existing methods, for example usually external tools are necessary for testing C++ programs. In this paper we present a new approach for testing C++ programs. Our solution is based on C++ template metaprogramming facilities, so it can work with the standard-compliant compilers. The metaprogramming approach ensures that the overhead of testing is minimal at runtime. This approach also supports that the specification language can be customized among other advantages. Nevertheless, the only necessary tool is the compiler itself.
提交历史
来自:Zoltán Kása[v1] 2010年11月30日 星期二 21:56:11 UTC