Test coverage always on 0% (.net core - Github Action)

I think the problem on the machine is this:

error MSB3073: The command "xmldocmd ValidatorDotNet.dll ..\..\..\..\Docs --obsolete --quiet --newline lf" exited with code 9009.

Source: trying to make sonarcloud work here. · brenordv/validator-dot-net@f0036f4 · GitHub

Due to this the build fails and the test don’t run properly → coverage.xml is not containing proper info.

Installing the tool before the build should fix the problem:

dotnet tool install xmldocmd -g

Not related to the problem at hand but I’ve also noticed that in the yml file the dotnet-coverage is installed twice:

1 Like