When creating deterministic cobertura reports with coverlet (c# dotnet coverage).

      This leads to empty <sources/> and relative filenames starting with "/_/...abc.cs".

      https://github.com/coverlet-coverage/coverlet/blob/master/Documentation/DeterministicBuild.md

      Currently these files cannot be found by the coverage plugin.

       

      [-ERROR-] Errors while resolving source files on agent:
      [Coverage] [-ERROR-] - Source file '/_/...abc.cs' not found 

       

      It would be great if this would work out of the box.

       

          [JENKINS-73635] support deterministic coverage report

          Ulli Hafner added a comment -

          Is everything after "/_/" the correct relative path? Then the Cobertura Parser should filter this text prefix.

          Ulli Hafner added a comment - Is everything after "/_/" the correct relative path? Then the Cobertura Parser should filter this text prefix.

          Yes it is.

          For now I replace /_/ with ./ in the coverage reports and then everything works as expected

          Kevin Broselge added a comment - Yes it is. For now I replace /_/ with ./ in the coverage reports and then everything works as expected

          Ulli Hafner added a comment -

          thebro Do you have a simple example report that we can use for a test? Otherwise I need to create a fake report on my own...

          Ulli Hafner added a comment - thebro Do you have a simple example report that we can use for a test? Otherwise I need to create a fake report on my own...

          Thats the simplest example report I found at the moment: coverage.cobertura.xml

          Kevin Broselge added a comment - Thats the simplest example report I found at the moment: coverage.cobertura.xml

            drulli Ulli Hafner
            thebro Kevin Broselge
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: