Skip to content

Index.html reports 0 on everything #632

Answered by bmackeydhcs
bmackeydhcs asked this question in Q&A
Discussion options

You must be logged in to vote

My report is generated via the command:

dotnet test MyPath/Me.Tests/ /p:CollectCoverage=true /p:CoverletOutputFormat=lcov /p:CoverletOutput=./coverage/ /p:Exclude=[xunit.*]*.MyPath/My.sln /p:ExcludeByFile=\"**/*.cshtml\"

I modified my report to be

/p:CoverletOutputFormat=cobertura
instead of
/p:CoverletOutputFormat=lcov

This created an XML based report as opposed to a JSON based report.

And then I got proper results from reportgenerator.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@bmackeydhcs
Comment options

@danielpalme
Comment options

Answer selected by danielpalme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants