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?
Some additional information:
It was working fine until I added 40 additional tests
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.