Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0% code coverage with netcoreapp3.1, coverlet.collector 1.3.1-preview.23.g2cfe8ea110, and ContinuousIntegrationBuild #920

Closed
Happypig375 opened this issue Aug 4, 2020 · 3 comments

Comments

@Happypig375
Copy link

Source: https://github.com/verybadcat/CSharpMath/tree/3f81533565329363aef14c8e45a5e67c2a7d6b1d
Run dotnet test CSharpMath.Evaluation.Tests --collect:"XPlat Code Coverage" -c Release -r .testcoverage and observe that the result .testcoverage/[GUID]/coverage.cobertura.xml only consists of

<?xml version="1.0" encoding="utf-8"?>
<coverage line-rate="1" branch-rate="1" version="1.9" timestamp="1596538273" lines-covered="0" lines-valid="0" branches-covered="0" branches-valid="0">
  <sources />
  <packages />
</coverage>

Removing
https://github.com/verybadcat/CSharpMath/blob/3f81533565329363aef14c8e45a5e67c2a7d6b1d/Directory.Build.props#L53
solves this issue.

@Happypig375
Copy link
Author

Happypig375 commented Aug 4, 2020

#882 (comment) claims to fix this but I am using the latest nightly and this still fails to create a report.

@Happypig375
Copy link
Author

or should I be using the MSBuild version?

@Happypig375
Copy link
Author

Closing as dupe of #882 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant