Scanner command used when applicable (private details masked)
C#
Azure Functions
I do not have any errors but my code coverage is not showing right on sonarcloud, sonarcloud is not showing few files/folders which are present inside my codebase and these files/folders are not excluded anywhere.
It start showing all the file if I rename the parent folder, tried everything issue seems to be with sonarcloud and if I revert the parent folder name it will again stop showing few files
Does the original name have “test” in it? We try to be smart about not requiring that the tests themselves be covered by tests. So if your directory name made it look like the contents were test files, they would have been excluded by default.
This image is from sonar showing only 14 files while application has 32
above mentioned app structure which has 32 files, there are many files which are there in logs but not in sonarcloud for ex - ERPDataFunction.cs, if you see this file exists in logs but not on sonarcloud and its part of code base as well
Based on your screenshot, this is a short-lived branch. That means it only reports on new code. Code that hasn’t been changed won’t be included. That explains your missing files: they haven’t been changed so they’re not relevant to short-lived branch reporting.
It sounds like you may be interested in PR analysis instead of short-lived branches. It analyzes what’s changed since the base branch and makes the results available both in SonarQube Cloud and in your DevOps platform, directly on your PR.