The opencov file does not generate correctly the path to the files if they are in /Packages

@JuliusJ @Unity-Nikos

Reported as: CASE IN-61372

(The problem occurs regardless of running in UI or batch mode).

I am trying to generate by command line the opencov archive but it does not correctly generate the fullPath field if the files it parses are under /Packages, example (using the sample that comes with the CodeCoverage package):

If instead I leave it where it was originally if it does well:

Hi @bdovaz . Thanks for your report. I’ve been able to confirm the issue, you should be able to track it here: Unity Issue Tracker - Coverage API returns relative paths for package source files (link should become valid shortly).

As a workaround, you could use pathReplacePatterns coverage option in batchmode to transform relative path back into full path. Something like pathReplacePatterns:./,C:/MyProject/ should do the trick. You can find more details here.

1 Like