"Test coverage visualization" does not work with gitlab-runner on Windows

Summary

We're trying to get the "Test coverage visualization" work with a dotnet project. Unfortunately, the "Test coverage visualization" does not work with a Windows-based gitlab-runner. I assume is has something to do with the forward slashes / used by Linux, and the backward slashes \ used by Windows.

Our MWE project is based on this:

A workaround is possible but is not ideal.

Steps to reproduce

Run the same job with a Windows-based runner and with a Linux-based runner:

build:
  # Uncomment to enable Linux-based build
  # image: mcr.microsoft.com/dotnet/sdk:5.0
  script:
    - dotnet tool install coverlet.console
    - dotnet build
    - dotnet coverlet <Path-to-test.dll> --target "dotnet" --targetargs "test --no-build" --format cobertura
  artifacts:
    reports:
      cobertura: coverage.cobertura.xml

Linux-based Gitlab Runner

Running the build with a Linux-based runner results in the following cobertura.xml:

image

Some seconds after the pipline succeeds, we see the following visualization:

image

Windows-based Gitlab Runner

Running the same with a Windows-based runner results in the following cobertura.xml:

image

After the pipline succeeds, we see the following visualization (=no visualization):

image

Edited by James Heimbuck