atlaste / CPPCoverage

Visual Studio Extension for measuring C++ Code Coverage and profiling data
78 stars 19 forks source link

Cobertura report on partition D #32

Open pfaennchen opened 4 years ago

pfaennchen commented 4 years ago

Hi,

CPPCoverage works fine if I create the report on a C partition. Unfortunately, it fails if I create a Cobertura report with sources on a D partition. Creation of the .cov file works fine AFAIK.

This problem is caused by the XML node “” within the Cobertura XML file. As it turns out, this is hardcoded in Coverage/FileCallbackInfo.h in line 269.

Suggestion: creating a new variable which stores the first character of the filenames and writing the variable in line 269 instead of the hardcoded “c”.

Best regards Johannes