Closed tumbledwyer closed 10 months ago
Hi,
please provide binary build log and diagnosis test log.
1)
-bl
--diag:".\log)\test.log;tracelevel=diagnostic"
2) please also check the latest preview from coverlet-nightly build
I will close the issue because there is no additional information provided.
Code coverage will be available with default configurations [Debug|Release]
. Customized build configurations has to be supported by the user.
Describe the bug When using anything but the default configuration, code coverage report is empty. Default configuration works perfectly with the following command:
dotnet test --no-restore --verbosity minimal ./MySolution.sln --collect:"XPlat Code Coverage" --results-directory ./coverage
To Reproduce Run
dotnet test --no-restore --configuration Test --verbosity minimal ./MySolution.sln --collect:"XPlat Code Coverage" --results-directory ./coverage
Expected behavior Complete coverage report
Actual behavior Empty report
Configuration: Here is the csproj of the test project
Is there something I'm missing?