Skip to content
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

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

xC0dex
Copy link
Member

@xC0dex xC0dex commented Sep 7, 2024

  • Remove CodeCov.
  • Add Upload/Download coverage reports.
  • Use opencover format for SonarCloud.
  • Explicitly downgrade SonarScanner to version 8.0.1 due to this issue.

Needs to be merged before MudBlazor/MudBlazor#9774.

@xC0dex xC0dex marked this pull request as ready for review September 8, 2024 09:15
@xC0dex xC0dex marked this pull request as draft September 8, 2024 09:19
@mikes-gh
Copy link
Contributor

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/'
Copy link
Contributor

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

Copy link
Member Author

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.

Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants