-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build: Add Sonar PR decoration #4
base: main
Are you sure you want to change the base?
Conversation
Need to think about the coverage format. I think this will break ReportGenerator coverage report. Reportgenerator does support opencover I believe. Need to make sure local coverage tools still work. Also we may be able to remove the coverlet package in the main repo |
@@ -86,12 +81,11 @@ jobs: | |||
run: dotnet build -c Release --no-restore | |||
|
|||
- name: Test | |||
run: dotnet test -c Release --no-build --no-restore --blame-hang --blame-hang-timeout 60s /property:GenerateFullPaths=true /consoleloggerparameters:NoSummary /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura /p:ExcludeByAttribute='ExcludeFromCodeCoverageAttribute' /p:ExcludeByAttribute='CompilerGeneratedAttribute' /p:ExcludeByFile='**/*.g.cs' /p:Include='[MudBlazor]*' /p:SkipAutoProps=true /p:CoverletOutput='./TestResults/' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just wondering why you removed the include. Doesnt this now show code coverage outside the library
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I think this is required for the Source Generator and the Analyser. Both have tests but the coverage was not included.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is the coverage excluded from the other projects are they annotated?
opencover
format for SonarCloud.8.0.1
due to this issue.Needs to be merged before MudBlazor/MudBlazor#9774.