使用CPPunit对MFC应用程序进行单元测试 [英] Using CPPunit for unit testing MFC applications

查看:63
本文介绍了使用CPPunit对MFC应用程序进行单元测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,

这与用于单元测试C ++代码的CppUnit工具有关.

我发现CppUnit是用于c ++代码的单元测试的有用工具.我能够对项目中使用的某些控制台应用程序和某些功能进行单元测试.
我正在寻找如何使用CppUnit进行单元测试MFC应用程序.假设我要测试在 InitDialog()函数中编写的代码.我该怎么做?


在此先感谢...

hi friends,

This is regarding CppUnit tool for unit testing C++ code.

I found CppUnit a useful tool for unit testing of c++ code. I was able to do unit testing of some console applications and some functions which I used in my project.
I am looking for how to use CppUnit for unit testing MFC application. Say I want to test the code which I write in InitDialog() function. How can I do this task.?


Thanks in advance...

推荐答案

嘿,此示例可能会对您有所帮助.

使用CPPUnit进行单元测试 [
Hey this example may help you.

Unit testing with CPPUnit[^]

SANTOSH


这篇关于使用CPPunit对MFC应用程序进行单元测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆