I have the issue of 0% coverage even on coverlet version 1.2.0 root/.nuget/packages/coverlet.msbuild/2.0.0/build/netstandard2.0/(23,5): error : 'XXXX' has a line coverage '0%' below specified threshold '90%' ĭotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=lcov /p:ThresholdType=line /p:CoverletOutput=./lcov Test Microsoft (R) Test Execution Command Line Tool Version 15.7.0
Test run for /builds/Test/bin/Debug/netcoreapp2.0/Test.dll(.NETCoreApp,Version=v2.0) When the threshold is present, I get a 0 percentage report.ĭotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=lcov /p:ThresholdType=line /p:Threshold=90 /p:CoverletOutput=./lcov Test NET Docker container (2.0-sdk) and coverlet.msbuild version 2.0.0.īy removing /p:Threshold=90, I'm getting a coverage result. I'm running on a Linux Mint machine with this dotnet configuration Generating report '/home/rob/git/svc_system_center/tests//coverage.json' NUnit Adapter 3.9.0.0: Test execution complete
NUnit3TestExecutor converted 456 of 456 NUnit test cases Running all tests in /home/rob/git/svc_system_center/tests//bin/Debug/netcoreapp2.0/.dll NUnit Adapter 3.9.0.0: Test execution started Microsoft (R) Test Execution Command Line Tool Version 15.5.0Ĭopyright (c) Microsoft Corporation. Test run for /home/rob/git/svc_system_center/tests//bin/Debug/netcoreapp2.0/.dll(.NETCoreApp,Version=v2.0)