Closed Oblutack closed 11 months ago
Hi, sorry but the current information is not sufficient.
We use a GitHub issue template which should be used to reduce additional question on the topic.
Testiranje/Testiranje.csproj
but it does not have a project reference for the test objectTestiranje/Testiranje.csproj
is invalid and line 20 should be removedPlease find buildable and testable csproj files: TSZadaca2.zip
Microsoft.CodeCoverage shows this in Visual Studio:
Using the updated csproj files will generate code coverage output.
dotnet test --no-build -bl:test.binlog /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
reportgenerator -reports:"**/*.opencover.xml" -targetdir:"artifacts\reports" - reporttypes:"Html;HtmlInline_AzurePipelines_Dark;Cobertura"
ReportGenerator can be used for HTML report.
I close the issue and recommend to read the Microsoft and coverlet documentation
I test with
dotnet test
using msbuild v6.0.0. It doesn't generate anything. I tried using collector and runningdotnet test --collect:"XPlat Code Coverage"
and it only displays zeros in the report aswell. https://github.com/Oblutack/TS_Zadaca2