trivago / cluecumber

Clear and concise reporting for the Cucumber BDD JSON format.

Home Page:https://www.softwaretester.blog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Java Heap Exception for larger number of test cases

gitissuepost opened this issue · comments

We have a test suite of around 5000 test cases mostly with API flows and a very minimal interaction with UI ad screenshots. Average size of cucumber json files getting generated, for each of the test cases is around 450kb While generating report, it processes some files and then ends up with Heap Space issue.

Is there any additional config do I need to add to resolve this issue? Below is the plugin config I have.
<plugin> <groupId>com.trivago.rta</groupId> <artifactId>cluecumber-report-plugin</artifactId> <version>2.8.0</version> <executions> <execution> <id>report</id> <phase>post-integration-test</phase> <goals> <goal>reporting</goal> </goals> </execution> </executions> <configuration> <customPageTitle>Cucumber Execution Report</customPageTitle> <startPage>ALL_SCENARIOS</startPage> <customParametersFile>${project.build.directory}/html-report.properties </customParametersFile> <sourceJsonReportDirectory>${project.build.directory}/cucumber-report-path </sourceJsonReportDirectory> <generatedHtmlReportDirectory>${project.build.directory}/html-report </generatedHtmlReportDirectory> </configuration> </plugin>

There is no specific Cluecumber configuration for this. 5000 JSON files x 450 kb would be more than 2 GB of JSON data being processed by Cluecumber - this is a pretty extreme case. I can see if the report generation can be optimized 😨