Hey,
jvmArgs property is the way to go. See the documentation on the Test task:
http://gradle.org/1.0-milestone-1/docs/dsl/org.gradle.api.tasks.testing.Test.html
Example:
test {
jvmArgs '-Xmx1024m', '-XX:MaxPermSize=256m',
'-XX:+HeapDumpOnOutOfMemoryError'
}
Cheers!
Szczepan
On Wed, Mar 23, 2011 at 1:21 PM, richardm <
[email protected]> wrote:
> Hi I've got some unit tests failing with OutOfMemoryError's. How can I add
> the vm argument :+HeapDumpOnOutOfMemoryError to the tests so I can get heap
> dump.
>
> Is it the test jvmArgs property I need to set? Will this affect my
> maxHeapSize setting?
>
> My test task look as follows:
>
> test {
> maxHeapSize = '1024m'
> }
>
> --
> View this message in context:
> http://gradle.1045684.n5.nabble.com/unit-tests-fail-with-OutOfMemoryError-how-do-I-add-HeapDumpOnOutOfMemoryError-tp4258700p4258700.html
> Sent from the gradle-user mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
>