azz-arb
(Azz Arb)
November 15, 2024, 2:55pm
1
Must-share information (formatted with Markdown ):
which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension) 10.6 Enterprise
how is SonarQube deployed: zip, Docker, Helm, : github actions
what are you trying to achieve: get code coverage
what have you tried so far to achieve this: tried steps for code coverage mentioned in the document
Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!
ganncamp
(G Ann Campbell)
November 18, 2024, 3:09pm
2
Hi,
Welcome to the community!
You haven’t given us much to go on here.
Which steps in which document? And what was the outcome?
Ann
azz-arb
(Azz Arb)
November 19, 2024, 1:17pm
3
Hi, thanks for responding. I can’t share the screenshots of the error as the code is related to client. however I followed the below document for code coverage
.NET test coverage
Would be helpful if you can help me in finding the correct logs (like I need to check in analysis step or the sonar end step as I’m new to sonar
) of the coverage error as my code contains 45k lines of logs and I’m not sure which log I need to check…
ganncamp
(G Ann Campbell)
November 19, 2024, 1:45pm
4
Hi,
Here are the log instructions:
Share the Scanner for .NET verbose logs
Add /d:"sonar.verbose=true"
to the…
SonarScanner.MSBuild.exe
or dotnet sonarscanner
begin command to get more detailed logs
For example: SonarScanner.MSBuild.exe begin /k:"MyProject" /d:"sonar.verbose=true"
“SonarQubePrepare” or “SonarCloudPrepare” task’s extraProperties
argument if you are using Azure DevOps
The important logs are in the END
step (i.e. SonarQubeAnalyze / SonarCloudAnalyze / “Run Code Analysis”)
Share the msbuild detailed logs
MsBuild.exe /t:Rebuild /v:d
or
dotnet build -v:d
Ann