Hi experts,
How can we got coverage of Unit Test by using Azure DevOps pipeline (build) integration with SonarQube (hosted on Azure VM)?
In other words, how can we get this coverage of unit test and push to SonarQube?
I have referred to the link:
Analyzing with SonarQube Extension for VSTS-TFS
https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Extension+for+VSTS-TFS
Our scenario is:
We setup an Ubuntu VM on Azure deployed SonarQube server, after that we got build pipeline like the attachments.
We use plug-in tools:
“Prepare Analysis Configuration”
“Run Code Analysis”
“Publish Quality Gate Result”
Our project is C# .NET CORE
I have already configured like the above link&guide but it’s not success so could you kindly please advise me how to configurate it correctly?
attachments have been uploaded.
The issue still remains.
Is there anything need to provide further?
Or is there something I haven’t configured yet?
Regards
hi @19844_lichen . During your build step, are you generating the coverage data?
Have you done this step mentioned in the docs
Click the Visual Studio Test task and check the Code Coverage Enabled checkbox to process the code coverage and have it imported into SonarQube. ( Optional but recommended )
yes, we have checked the Code Coverage Enabled checkbox. but it doesn’t work.
Do we just need to follow the document to get the Code Coverage? especially the .NET solution ?
Or are there any parameters else that need to be configured that we have omitted?
Please advise.
Could you remove the sonar.cs.vscoveragexml.reportsPaths=**/*.coveragexml
from the Additional Properties area, and try again?
1 Like
duncanp
(Duncan Pocklington)
May 29, 2019, 11:51am
7
Also, check whether you are affect by issue described in this thread .
1 Like
Hey, did you get a solution?
Hello, What do you mean by importing in SonarQube. Do we need to do any additional step apart from enabling the checkbox “Code coverage enabled”
hi @Mehul_Parmar - could you please open a new topic and describe what exactly your problem is and what are the steps you took so far? thank you!