Unable to analyze branches inside the release folder for code coverage

Hi,

We are using release/dev-1.0.0 as a dev branch in azure repos trying to analyze the project with the same branch from azure build pipeline with sonar tasks but unable to get the branch from the particular folder.

Could you please help me on this issue and cross the hurdle ?

Thanks.

Hello @rohith0003 ,

Could you clarify what you mean by release folder in this case? Do you an error message or something similar?

Branch exists inside a folder in our case its release/dev-1.0.0

Not sure if I understand the request correctly. You could check the long-living branch configuration for your project (select “Branches” in the left sidebar inside the project) and update it so that it can match this structure.

image

Please find the branch here, in this branch the unit test cases exists but we are unable to see the code coverage in sonar cloud.

Thank you for the clarification!

Which language are you using in that project? Have you already taken a look at our documentation about test coverage?

C# we are also using the below parameters in the analysis task

extraProperties: |
sonar.exclusions=/obj/,/*.dll
sonar.cs.opencover.reportsPaths=$(Build.SourcesDirectory)/
/coverage.opencover.xml
sonar.cs.vstest.reportsPaths=$(Agent.TempDirectory)/*.trx

Hi @Martin_Bednorz could you please help us on the issue raised if we need additional changes ?

Did you check the analysis logs for any errors/warnings that relate to the coverage? I’ve pinged some people internally who are more knowledgeable about .NET to take a look.

We are able to see the test results inside the pipeline but unable to get the results in sonar cloud.

Hi @Martin_Bednorz could you please help me if you have any update on the existing issue ?