pycobertura icon indicating copy to clipboard operation
pycobertura copied to clipboard

Require More than one source file path provision for one coverage report

Open rohith0205 opened this issue 5 years ago • 2 comments

Require More than one source file path provision for one coverage.xml file.

Ex:

pycobertura diff coverage.old.xml coverage.new.xml --source1 old_source/,old_source2/,old_source3/ --source2 new_source/,new_source2/,new_source3/

rohith0205 avatar Jul 17 '20 13:07 rohith0205

Thanks for your request @rohith0205 !

Can you update the issue description and provide more context about your use case? I've never used more than one source directory per coverage file. What would be a situation when this would occur? More background on how you get there would help me understand the workflow.

aconrad avatar Jul 17 '20 15:07 aconrad

Do the coverage files contain paths like:

<line filename="old_source/foo" hits="1">
<line filename="old_source2/foo" hits="1">
<line filename="old_source3/foo" hits="1">

Or are those meant to be additional lookup directories should the filename not be found in the first directory? If that's the case, how can we ensure that we parse the right file if it's present in 2 of the look-up paths?

aconrad avatar Feb 10 '22 16:02 aconrad