Completely lost trying to collect Code Coverage

I read your post better. From what I understand, the dotnet test command fails, right? I see you are passing the coverage.xml as a parameter to dotnet test… Please read the manual of the command: dotnet test command - .NET CLI | Microsoft Learn

dotnet test [<PROJECT> | <SOLUTION> | <DIRECTORY> | <DLL>]

Also, related: