Reportgenerator: Seems filters don't work

Created on 10 May 2019  路  5Comments  路  Source: danielpalme/ReportGenerator

I am configuring azure CI pipeline.
and I've added following steps:

  • test
  • report generator
  • publish code coverage

but in the generated report I see all the files assemblies (including xunit) because filter seems doesn't work.
also I changed report type to Dark scheme, but not changes in the report:

the list of filers is following:
image

but the result still contains
image

looks like no parameters applied from the configuration section, or I do something wrong

Azure DevOps question

All 5 comments

You are not doing anything wrong.

The problem is:
The generated HTML is ignored and regenerated by the 'Publish code coverage' task.
Microsoft changed that recently:
https://docs.microsoft.com/en-us/azure/devops/release-notes/2019/sprint-150-update#cobertura-code-coverage-report-updates

You are not doing anything wrong.

The problem is:
The generated HTML is ignored and regenerated by the 'Publish code coverage' task.
Microsoft changed that recently:
https://docs.microsoft.com/en-us/azure/devops/release-notes/2019/sprint-150-update#cobertura-code-coverage-report-updates

does it mean that Microsoft ignoring all the filters, removed all the styles (according to the security reasons) but NOT add the filtering functionality by themselves?
means there is no workaround to apply filtering during publishing code coverage results?

Correct.

Workaround:
Publish the report generated by 'ReportGenerator' as a separate artifact and ignore the coverage results from Azure DevOps.

Microsoft as usually makes the life easier.
thank you for quick reply and great tool!

I just found out, that you can set an environment variable to prevent regenerating the report:

disable.coverage.autogenerate: 'true'
Was this page helpful?
0 / 5 - 0 ratings