-
Notifications
You must be signed in to change notification settings - Fork 386
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
Hiding and excluding some parameters on the Coverage Code tab (Azure DevOps) #1558
Comments
Coverlet is only calculating the coverage report. For visualization it seems you are using reportgenerator. The whole html representation including the |
Report Generator supports filters which can be used to remove unwanted content from HTML output. There is also a configuration tool available which covers all options. The coverage results for the test projects are accumulated and the filters are applied before the Cobertura.xml file is created.
Maybe you can increase the threshold for the metric (see https://github.com/danielpalme/ReportGenerator/wiki/Settings) We use it for the coverage report for coverlet CI builds. |
This issue is stale because it has been open for 3 months with no activity. |
Risk hotspots can be disabled. The assemblies can be excluded from the report. Apply the following two settings (last two lines are relevant): - task: reportgenerator@5
displayName: ReportGenerator
inputs:
assemblyfilters: '-Converge.Libraries.NuGetUtilities;-*WebApi'
customSettings: 'settings:disableRiskHotspots=true' |
Hello!
I have a question.
Is it possible to hide "Risk Hotspots" in the "Coverage Code" tab (Azure DevOps pipelines)
and also exclude "Converge.Libraries.NuGetUtilities" and "nameWebApi" from the test results in the "Coverage Code" tab?
May it possible from step unit test in Arguments after parameters `--logger:"console;verbosity=normal" --configuration $(buildConfiguration) --collect:"XPlat Code Coverage /p:Exclude="[nameWebApi.], [NuGet.]"
The text was updated successfully, but these errors were encountered: