Hi John,

Thanks, yes, I've tried that setting already with partial success. With that 
setting, the test passes when I run a clean and build. The test however fails 
when I try to run that single test file (which I want to run through the 
debugger)..

Thanks,

Andy
________________________________
From: John Mc <mcdonnell.j...@gmail.com>
Sent: 16 December 2019 12:37
To: Andy Turner <a.g.d.tur...@leeds.ac.uk>
Cc: users@netbeans.apache.org <users@netbeans.apache.org>
Subject: Re: Increase memory for unit tests.

Hi,

If your using maven, have you tried updating the surefire plugin to include an 
Xmx setting?

For example:

 <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <configuration>
                <argLine>-Xmx1024m</argLine>
            </configuration>
        </plugin>

Regards

John

On Mon, 16 Dec 2019 at 09:06, Andy Turner 
<a.g.d.tur...@leeds.ac.uk<mailto:a.g.d.tur...@leeds.ac.uk>> wrote:
Hi,

I am trying to work out a good way to increase the available memory for junit 
tests in order to debug some test files in the IDE. I am using JUnit 5 and 
Maven.

Do you have any advice?

Thanks for Netbeans. I am a long term Netbeans user and have just re-subscribed 
to the user list again having failed to find a good solution for this.

Many thanks for your help.

Andy

Reply via email to