DEV Community

freecoderzhaoshuai
freecoderzhaoshuai

Posted on

1

DotNet core code coverage

You scanner begin should include the code coverage property

dotnet sonarscanner begin /k:“project-key” /d:sonar.cs.vscoveragexml.reportsPaths=\TestResults*.coveragexml
dotnet build my.sln
dotnet test myTest.csproj --collect:“Code Coverage”
powershell script to convert .coverage to coveragexml
dotnet sonarscanner end

Top comments (1)

Collapse
 
insight_it_891bf8cd689700 profile image
Insight IT

Nice and informative content,
Thanks for sharing with us,
We are providing Best Dot NET Training in Hyderabad,

DOT NET Training in Hyderabad
DOT NET Online Training in Hyderabad
DOT NET Online Course in Hyderabad

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay