Skip to content

A python script that converts XML coverage from Intel's codecov tool to Cobertura XML format, for use in e.g. Hudson/Jenkins.

Notifications You must be signed in to change notification settings

halvorlu/codecov-to-cobertura

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

codecov-to-cobertura

Codecov_to_cobertura.py is a python script to convert from XML produced by Intel's codecov tool to Cobertura XML format. This format can be read by e.g. Hudson/Jenkins to generate coverage reports. See e.g. intel.com for more info on codecov.

Usage

  • Compile your C++/Fortran code with the -prof-gen=srcpos flag.
  • Run your program (possibly with various inputs to cater all scenarios), which produces .dyn files.
  • Use the profmerge tool to merge one or more .dyn files into pgopti.dpi.
  • The codecov tool can now be used: codecov -prj <projectname> -dpi pgopti.dpi -spi pgopti.spi -xmlbcvrg codecov.xml, which should produce an XML file codecov.xml
  • Finally the codecov_to_cobertura.py script can be used to generate a Cobertura XML file: python codecov_to_cobertura.py codecov.xml <src_path> <object_path> coverage.xml where <src_path> and <object_path> are the paths to your source and object files, respectively.

For more description of the command-line arguments to codecov_to_cobertura.py, try codecov_to_cobertura.py -h.

Notes

  • Has only been tested on Linux.
  • Uses nm to list symbols in object files.
  • Use at your own risk.

About

A python script that converts XML coverage from Intel's codecov tool to Cobertura XML format, for use in e.g. Hudson/Jenkins.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages