You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the "OutOfMemoryError" while generating scoverage xml reports for large projects (>50 targets/modules).
In my opinion, this is occurring because ScoverageXmlWriter.scala tries to first generate the entire XML tree in memory before writing it out to the file:
One way to resolve the issue would be to use a stream writer (e.g javax.xml.stream.XMLStreamWriter)to write the output. This would involve passing the writer as an argument to the xml(coverage: Coverage) function above. Thanks.
The text was updated successfully, but these errors were encountered:
I get the "OutOfMemoryError" while generating scoverage xml reports for large projects (>50 targets/modules).
In my opinion, this is occurring because
ScoverageXmlWriter.scala
tries to first generate the entire XML tree in memory before writing it out to the file:scalac-scoverage-plugin/scalac-scoverage-plugin/src/main/scala/scoverage/report/ScoverageXmlWriter.scala
Lines 21 to 32 in 9bb6198
One way to resolve the issue would be to use a stream writer (e.g
javax.xml.stream.XMLStreamWriter
)to write the output. This would involve passing the writer as an argument to thexml(coverage: Coverage)
function above. Thanks.The text was updated successfully, but these errors were encountered: