C++ Jenkins QA Stack / Tools

前端 未结 3 603
说谎
说谎 2021-01-29 21:20

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

We already have multiple Jenkins instances running and m

相关标签:
3条回答
  • 2021-01-29 21:58

    I'm currently using the plugin xUnit for C/C++ projects, and it's been working very well so far.

    According to cppunit's wikipage, it is no longer being maintained but has been migrated into xUnit (source).

    0 讨论(0)
  • 2021-01-29 22:22

    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:

    • 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

    We also use cppcheck for static analysis.

    Hope that helps!

    0 讨论(0)
  • 2021-01-29 22:23

    We use Jenkins with the googletest unit testing framework.

    • Test runs produce jUnit-compliant xml.
    • Ported to most every compiler you're likely to run across.

    On following my own link, I found this:

    Continuous Code Coverage with gcc, googletest, and Hudson

    The first three lines of the command simply execute the build. The command on line 4 executes the binary test application we have built, and outputs the test result summary to a junit format XML file.

    The final two commands are where the magic is. This executes the gcovr script, a handy python script that converts the gcov output to a Cobertura-style XML file.

    Then we have to tell hudson to search the build workspace for the junit and coverage xml files as a post-build action. Now when we run the build we get nice overview charts trending out unit test results and code coverage.

    0 讨论(0)
提交回复
热议问题