Add SonarCloud analysis with code coverage#12
Conversation
Co-authored-by: 304NotModified <5808377+304NotModified@users.noreply.github.com>
|
@copilot could we use ms packages instead of coverlet? |
Co-authored-by: 304NotModified <5808377+304NotModified@users.noreply.github.com>
Done in af9e491. Replaced |
|
@copilot it fails. |
Co-authored-by: 304NotModified <5808377+304NotModified@users.noreply.github.com>
|
@copilot coverage is not visible in sonarcloud? |
Co-authored-by: 304NotModified <5808377+304NotModified@users.noreply.github.com>
Fixed in 1ffa120. The VS Coverage XML format ( |
|
@copilot still on sonarcloud.io .Coverage |
Co-authored-by: 304NotModified <5808377+304NotModified@users.noreply.github.com>
Fixed in fe4e000. The problem was that |
|
/home/runner/work/SLNX-validator/SLNX-validator//TestResults//.cobertura.xml |
Co-authored-by: 304NotModified <5808377+304NotModified@users.noreply.github.com>
Fixed in 27a134a. Two issues were at play:
Added This converts all Cobertura files into |
304NotModified
left a comment
There was a problem hiding this comment.
Not sure if the code coverage now works. Will see after merge
.github/workflows/sonarcloud.yml)coverlet.collectorwithMicrosoft.Testing.Extensions.CodeCoverageintests/Directory.Build.propssonar-project.properties(incompatible withdotnet-sonarscanner)sonar.coverageReportPathsfor SonarQube Generic Coverage formatreportgeneratorstep to convert*.cobertura.xml→coverage/SonarQube.xml(Generic Coverage XML), sincesonar.coverageReportPathsdoes not support globs and expects Generic Coverage XML schema, not Cobertura💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.