Is there anyway to merge cobertura coverage xml reports together?

后端 未结 5 1867
时光说笑
时光说笑 2021-01-04 02:29

I have c++/c application with a lots of unit tests. I would like to get overall coverage and also individual coverage of each test with condition that each test can be run o

5条回答
  •  感动是毒
    2021-01-04 03:15

    The last release of ReportGenerator can merge cobertura files.

    You can install it from nuget

    usage:

    reportgenerator "-reports:target\*\*.xml" "-targetdir:C:\report" -reporttypes:Cobertura
    

    A file Corbertura.xml is generated in the targetdir directory

    You can use the dotnet core version to use it on linux or mac

提交回复
热议问题