可能重复:
Suggestion for UnitTest tools for C++
Choosing a C++ unit testing tool/framework
Unit Testing C Code测试C/C++源代码
这是我一直在现在,我们必须使用C/C疑惑++作为我们某些大学项目的基础语言:
在Java中有JUnit,
在PHP中有PHPUnit
等
如何单元测试在C/C++做?这可能是一个愚蠢的问题,但我不认为我完全读过应用程序(源代码)是如何进行单元测试的 - 如果在C/C++中有这样的事情 - 除了“检查代码是否编译”。
JUint,PHPUnit ...嗯,那里有一个模式...也许[CUnit](http://cunit.sourceforge.net/)? – dmckee 2010-09-25 03:22:31
http://stackoverflow.com/questions/3751169/suggestion-for-unittest-tools-for-c http://stackoverflow.com/questions/2523584/whats-your-recommandation-for-c-unit-testing-框架 – dmckee 2010-09-25 03:25:42
http:// stackoverflow。com/questions/65820/unit-testing-c-code,http://stackoverflow.com/questions/13699/choosing-a-c-unit-testing-tool-framework – outis 2010-09-25 04:44:00