简体   繁体   English

Xcode中的CppUnit(或一般的C ++单元测试)

[英]CppUnit (or C++ unit tests in general) in Xcode

I've written some ObjC unit tests for use with the OCUnit support in Xcode. 我已经编写了一些ObjC单元测试,用于Xcode中的OCUnit支持。 Now I would like to do the same for some of the C++ code I'm about to write (a separate static library). 现在我想对我即将编写的一些C ++代码(一个单独的静态库)做同样的事情。

Is there any support for eg CppUnit (or some other C++ test framework) in Xcode? 在Xcode中是否支持例如CppUnit(或其他一些C ++测试框架)? When I write support, I mean I want to run the tests and display the results in the Xcode GUI. 当我写支持时,我的意思是我想运行测试并在Xcode GUI中显示结果。

Have you looked at Google C++ Testing Framework ? 你看过谷歌C ++测试框架了吗? That one should be pretty portable. 那个应该是非常便携的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM