C++ Jenkins QA 堆栈/工具

我们目前正在为您的 C++ 开发构建QA 堆栈.

We are currently in the process of building a QA stack for you C++ development.

我们已经有多个 Jenkins 实例在运行,并在 CI 服务器与其他语言(如 java 和 php)结合使用时获得了非常好的体验.

We already have multiple Jenkins instances running and made very good experiences with the CI server in combination with other languages like java and php.

我要的是指向可用于使用 Jenkins 进行 C++ 开发的工具链的指针.

What I'm asking for are pointers to tool chains that can be used for C++ Development with Jenkins.

更具体(大括号中的java/php示例):

More specific (java / php examples in braces):

  • 一个单元测试框架,用于测试和生成覆盖率报告(jUnit/phpUnit)
  • 编码指南检查器(checkstyle/phpCodeSniffer)
  • 在代码库中发现潜在问题的 PMD (pmd/phpmd)
  • 如果适用/需要更多,但我猜这 3 个将是基础?
  • A unit testing framework that test and produces coverage reports (jUnit / phpUnit)
  • A coding guidelines checker (checkstyle / phpCodeSniffer)
  • Something PMD that spots potential problems in a code base (pmd / phpmd)
  • More if applicable / needed, but those 3 would be the basics i guess?

虽然我的问题得到了可以接受的答案,但我被要求提供更多工具/选项/理由来为这个项目使用 Jenkins.

While i got an acceptable answer to my question I was asked to provide more tools / options / reasons to use Jenkins for this project.

过去,在这方面,我使用商业工具的体验并不理想.(什么?你想保存!那些报告?那么你需要购买额外的 10k Bucks/Year 插件,它可以为你生成精美的图形!)我可能错了,如果我错了,请告诉我.

In the past I've made suboptimal experiences with commercial tools in this regard. (What? You want to SAVE! those reports? Then you need to buy the extra 10k Bucks/Year plugin that can generate fancy GRAPHS! for you.) I might be wrong here so please tell me if I am.

但我主要是在寻找与 Jenkins 一起用于 C++ 开发和 QA 的全套工具

推荐答案

我们使用 Jenkins 和 C &C++.这些是我们使用过的工具,我认为您可能会觉得有用.所有这些都可以与 Jenkins 一起使用:

We use Jenkins with C & C++. These are tools that we have used, and I think you may find useful. All of them are usable with Jenkins:

  • 单元测试框架 - cppunit :输出可直接输入的 xml使用 cppunit 插件
  • 进入 Jenkins
  • 覆盖范围:gcov + gcovr 产生良好的效果覆盖率报告
  • 编码指南检查器:您可以使用 pclint &警告插件.
  • Mess Detector : 不确定您所说的混乱是什么意思,但我们正在使用 PMD/CPD 用于代码重复检查,NSIQ 用于复杂性和 LOC
  • Unit Testing Framework - cppunit : outputs xml which can be fed directly into Jenkins using the cppunit plugin
  • Coverage : gcov + gcovr produces good coverage reports
  • Coding guidelines checker : you can use pclint & the warnings plugin for this.
  • Mess Detector : Not sure what you mean by mess here, but we are using PMD/CPD for code duplication checking and NSIQ for complexity and LOC

我们还使用 cppcheck 进行静态分析.

We also use cppcheck for static analysis.

希望有帮助!

相关文章