junitreport Ant任务给予java.lang.OutOfMemoryError:Java堆空间 [英] junitreport ant task giving java.lang.OutOfMemoryError: Java heap space
问题描述
我是从一个Ant脚本运行JUnit测试。测试成功运行到该junitreport任务创建HTML报告,以便蚂蚁搬家。这个任务是用 java.lang.OutOfMemoryError失败:Java堆空间误差
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 java.lang.OutOfMemoryError: Java heap space error
.
我怎样才能提高此任务的堆大小?还是有另一种方式来解决这个问题?
How can I increase the heap size for this task? Or is there another way to resolve this error?
一些额外的信息:
这是工作的罚款,直到我40加额外的测试。
It was working fine until I added 40 additional tests
我看了一下测试的XML输出,它看起来合理的,即它不是完全长的错误消息。
I've had a look at the xml output of the tests and it looks reasonable i.e. it's not full of long error messages.
推荐答案
您可以使用ANT_OPTS环境变量来增加堆大小的蚂蚁用途
you can use the ANT_OPTS environment variable to increase the heap size ant uses
这篇关于junitreport Ant任务给予java.lang.OutOfMemoryError:Java堆空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!