how to convert codecov coverage results to Cobertura(Jenkins) file format

how to convert codecov coverage results to Cobertura(Jenkins) file format

Rahul K.的头像

I have done the code coverage Analysis of my CPP code using Intel codecov tool. Now i want to convert the result and want to see analysis using Cobertura file format. Please give the steps to do so.

Thank

2 帖子 / 0 new
最新文章
如需更全面地了解编译器优化,请参阅优化注意事项
Jennifer J. (Intel)的头像

The code coverage tool comes with Intel C++ Compiler does not output the result in Cobertura format. But you might be able to add a layer to convert the result.

Here is the steps on using the code coverage tool from Intel C++ compiler:

  1. compile the code with /Qprof-gen:srcpos /Qcov-gen /Qprof_dir:.\codecov
  2. run the app and it will generates a .dyn file under the .\codecov folder and you can run the app multiple times with different input data, and each time it will generate an unique .dyn file.
  3. run "profmerge" tool to merge the .dyn files into a summary file "pgopti.dpi" file
  4. finally run "codecov" tool:         >> codecov -prj test1 -dpi test1.dpi -txtbcvrg test1_bcvrg.txt

the last step above generates a text file. You can create a script to convert the txt file to other format.

More detailed info can be found from this Code Coverage link.

Jennifer

 

登陆并发表评论。