Skip to content
Discussion options

You must be logged in to vote

Thank you for starting this discussion.

Please use the latest coverlet.msbuild 10.0.1 package.

Regarding this statement:

It seems Coverlet currently assumes: "If any test fails, the coverage data is invalid and should not be saved" — but for CI visibility, this is too strict.

This is not an intentional Coverlet behavior. Coverlet does not treat failed tests as invalidating the collected coverage data.

If coverage output is not being generated when tests fail, the reason may be that dotnet test terminates with an error or aborts execution before Coverlet can complete its processing and write the report.

You could use coverlet.collector as alternative package which also allows to create …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Bertk
Comment options

You must be logged in to vote
0 replies
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