Include Code Coverage of blazor component source file in my SonarQube report

I have a blazor app with many components. Running unit test for those components on Visual Studio gives me the fully coverage report.
As scan code with SonarQube using MSBuild Scanner, my unit test command is:
dotnet test .\Tests\App.Test.csproj /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --logger trx
yet there’s no coverage report on the .razor files .
I am wondering if there’s any missing item in my config file SonarQube.Analysis.xml.

Thank you.

Hi @Aaron_Nguyen,

thanks for your feedback. Your configuration looks good and is not the reason for the missing coverage.

At this moment we don’t have support for *.razor files. We know about this and we are considering improvements in this area but I cannot provide a timeline since in the following months we plan to focus on adding support for C# 9 features.

Best regards,