Getting gcov results in Clover coverage summary

このページの内容

Clover is now available as an open source project. Learn more

This feature is not officially supported by Atlassian. It is being maintained by open source community, feel free to contribute.

説明

Clover does not support code coverage for C/C++. However, it is possible to display C/C++ coverage statistics on "Clover" tab on  "Job Summary" and "Plan Summary" pages. In order to get this working:

  • create a task in which gcov is used and produces coverage file
  • create a task in which python script (see references below) converts gcov data to clover.xml file
  • enable Clover on Miscellaneous tab on Job Configuration page
    • enable "Use Clover to collect code coverage for this build"
    • select option "Clover is already integrated into this build and a clover.xml will be produced."
    • enter path to clover.xml file

 

参考

Source code for Python script performing conversion is kept in Mercurial bamboo-gcov-plugin repository on bitbucket.org:

hg clone ssh://hg@bitbucket.org/atlassian/bamboo-gcov-plugin

 

Discussion about Clover schema on Atlassian Answers:

最終更新日 2017 年 9 月 28 日

この翻訳に満足しましたか?

はい
いいえ
この記事についてのフィードバックを送信する

お探しの情報が見つかりませんか?

コミュニティへの質問

Powered by Confluence and Scroll Viewport.