哪个 C 单元测试框架可以与 Jenkins 一起使用
我正在尝试寻找一个可以与 Jenkins 一起使用的 C 单元测试框架。 来自维基百科页面 http://en.wikipedia.org/wiki/List_of_unit_testing_frameworks#C 我可以看到只有少数生成 XML 结果,并且 gtest 需要使用 g++ 编译代码,
如果有人有使用与 Jenkins 良好配合的测试框架的丰富经验,我将不胜感激。
I am trying to find a unit test framework for C, that would work with Jenkins.
from the wikipedia page http://en.wikipedia.org/wiki/List_of_unit_testing_frameworks#C
i can see only few that generate results in XML , and gtest needs your code to be compiled with g++
I would appreciate if anyone has good experience using a test framework that worked well with Jenkins.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,在 gtest 中,测试类必须是 C++,但没有人阻止您链接到 C 代码。因此,被测系统可以用C编写。
如果测试类可以用C++编写,那么gtest是一个非常可行的选择。
Well, in gtest the test classes have to be C++, but nobody prevents you from linking to C code. Therefore, the system under test can be written in C.
If it is ok that the test classes are in C++, gtest is a very viable option.