I uses ReportGenerator for my very big project (Some coverage data files (*.xml) in GB & 500+ files) .
It gives above Error and don't generate.
Error during reading report '*.xml' (Size: 302.3MB): Insufficient system resources exist to complete the requested service. : ''
There is probably very litte I can do about that, since you simply run out of memory.
Some suggestions:
I have Unit test & Integration Test. I have no issues with Unit Test. But The issue for Integration tests(400+) which are long (24+ hrs) and complex.
I want First one Report for All Unit Tests(300+). Then second (separate) one Report for Integration Test ( 400+).
I do execute each Test project desperately. It produce coverage file separately by each project. Place all coverage file for Integration test in one folder for One Report. Then I do Generate Report in One Go.
I get the issue while Generate One Report for all coverage files.
As mentioned above:
Try to generate a single coverage file for all unit / integration tests
Or merge all the files step by step:
ReportGenerator.exe -reports:unittest1.xml;unittest2.xml -targetdir:merged1 -reporttypes:Cobertura
ReportGenerator.exe -reports:unittest3.xml;unittest4.xml -targetdir:merged2 -reporttypes:Cobertura
ReportGenerator.exe -reports:merged*/Cobertura.xml -targetdir:coveragereport -reporttypes:Html
Thanks Daniel. I will try and update you.
Hi Daniel,
Split-Coverage & Merge work for me..
Thanks for your input.
Regards,
Samir