Filter HTML reports to only show coverage results below a certain percentage #662
Replies: 6 comments 1 reply
-
Hi Bryan, there is currently no way to filter classes based on their coverage. Only problem is, that this would not work within Azure DevOps, since JavaScript is blocked here. |
Beta Was this translation helpful? Give feedback.
-
Release 5.3.0 now contains range sliders to dynamically filter classes based on coverage |
Beta Was this translation helpful? Give feedback.
-
I ran v5.3 and still don't see the sliders. I also added 'publishCodeCoverageResults: true' param and removed 'PublishCodeCoverageResults' task. |
Beta Was this translation helpful? Give feedback.
-
This only works outside the Azure DevOps "Code Coverage" tab. Here's a sample report: https://reportgenerator.io/resources/reports/HtmlInline_AzurePipelines/index.html |
Beta Was this translation helpful? Give feedback.
-
Good to know about the JavaScript in ADO. |
Beta Was this translation helpful? Give feedback.
-
The screenshot indicate that you are not using the latest version 5.3.0. Are you sure that the If not, the report may get regenerated. See this wiki page for details: |
Beta Was this translation helpful? Give feedback.
-
Hello,
We use the Report Generator in our Azure DevOps pipeline. The output type is HtmlInline_AzurePipelines. We have a lot of classes we would like to ignore in the report whose coverage is above a certain percentage (90%).
I don't see a simple way to pass params to the Report Generator task to accomplish this. The only way I see is if someone wrote a custom plugin and put a % threshold in the CreateSummaryReport method of the IReportBuilder implementation. Am I correct in this assumption, or did I miss anything.
Thank you!
Bryan
Beta Was this translation helpful? Give feedback.
All reactions