junitreport ant task giving java.lang.OutOfMemoryError: Java heap space

前端 未结 4 732
一整个雨季
一整个雨季 2021-01-23 06:47

I\'m running junit tests from an ant script. The tests run successfully so ant moves on to the the junitreport task to create the html report. This task is failing with a

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-23 07:26

    You can use the maxmemory set within junit task itself.

    
    

    As the docs explain,

    Maximum amount of memory to allocate to the forked VM. Ignored if fork is disabled. Note: If you get java.lang.OutOfMemoryError: Java heap space in some of your tests then you need to raise the size like maxmemory="128m"

提交回复
热议问题