Coverage not showing for few files/folders in .Net azure pipelines

Hi Team, One of our pipeline having WPF(windows presentation framework) .Net code showing code coverage in Sonarqube dashboard for few folders/files only, but not all the code, facing issue in single pipeline. while coverage is covered for all code in other pipelines. Attached doc with error screenshots. Please do review and advice on this to get resolved. thanks
not working project:

working project:

coverage result of few completed test cases is not pushing to Sonarqube, while few test cases result published in SQ dashboard. could you advice the reason for this please.

VSTest task:
image

Runcode analysis task:
image

However Sonarqube not showing coverage of all the code as I mentioned above.

Hi,

I don’t understand. And I’m unable to read the screenshots in your third post.

 
Ann

Hi Ann, thanks for your reply.
I mentioned in 3rd post, our pipeline VSTest task given test cases result and created coverage file and run code analysis task found that specific coverage file and published to SQ project.

Per me 1st post, we created test cases having coverage for Libraries & WpfClient folders, and I verified coverage file contained WpfClient files also, while SQ project showing coverage of only Libraries files, but not WpfClient files. You can see this 1st post screenshot. Please suggest me to resolve this issue & let me know if you need more details, thanks

Hi,

Please copy/paste the text of your analysis log.

The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.

This guide will help you find them.

 
Ann

Hi Ann,
By adding the below we resolved the issue. thanks
false in wpfclient csproj file, becoz Sonarqube thinking wpfclient is test project

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.