哪个 C 单元测试框架可以与 Jenkins 一起使用

发布于 2024-12-07 16:08:18 字数 298 浏览 5 评论 0原文

我正在尝试寻找一个可以与 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

时光暖心i 2024-12-14 16:08:18

好吧,在 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文