Reportgenerator: Error during reading report '*.xml' (Size: 302.3MB): Insufficient system resources exist to complete the requested service. : ''

Created on 21 Aug 2020  路  5Comments  路  Source: danielpalme/ReportGenerator

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. : ''

help wanted

All 5 comments

There is probably very litte I can do about that, since you simply run out of memory.

Some suggestions:

  • Try to generate a few coverage files as possible (execute tests in one run instead of several ones)
  • Generate several coverage reports for different parts of your application (depending on your project structure)
  • If need a single report try the following:

    • Use ReportGenerator to merge several coverage files into a single file in Cobertura format

    • Repeat until you have a single or few coverage files which ReportGenerator can handle in memory

    • Now generate the report

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wsugarman picture wsugarman  路  4Comments

ankit-arora12 picture ankit-arora12  路  7Comments

ByteDecoder picture ByteDecoder  路  6Comments

jon-armen picture jon-armen  路  4Comments

diegoibellini picture diegoibellini  路  7Comments