Skip to content

cobertura coverage does not support drive letter only in source tag #1682

@shader-man

Description

@shader-man

Hi,

generating a cobertura report from opencppcoverage fill all the "filename" paths in lowercase ( info extracted from PDB files on windows )

<?xml version="1.0" encoding="utf-8"?> <coverage line-rate="0.34319526627218933" branch-rate="0" complexity="0" branches-covered="0" branches-valid="0" timestamp="0" lines-covered="116" lines-valid="338" version="0"> <sources> <source>f:</source> </sources> <packages> <package name="f:/build/MyDLL.dll" line-rate="0.34319526627218933" branch-rate="0" complexity="0"> <classes> <class name="file.h" filename="f:/my/file/path/file.h" line-rate="0" branch-rate="0" complexity="0">`

the cobertura coverage sensor cannot associate the file path in mixed case with this windows lower case path and gives the following error :
07:44:03.310 INFO: Added coverage report 'f:/My/File/Path/report.xml' (parsed by: CoberturaParser) 07:44:03.311 DEBUG: save coverage measure for file: 'f:/my/file/path/file.h' cxxFile = 'null' 07:44:03.311 DEBUG: Cannot find the file 'f:/my/file/path/file.h', ignoring coverage measures

I fed a case-correct cobertura to the plugin and it worked.

would it be possible to ignore the casing for file association?

thanks,

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions