Intellij, How to set JVM parameters for Junit Unit tests?

I changed JVM parameters using Run / Debug Configurations ( -Xms512m

) parameters , but when I run a test call, the IntellijIdea call is used below args, replication option -Xms

:

/usr/lib/jvm/java-7-openjdk/bin/java -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:58896,suspend=y,server=n **-Xms512m -Xms256m** -Xmx512m -

      

Why?

+3


source to share


1 answer


You need to edit your run configuration - click on the dropdown next to the Run Run button in the menu bar and select Edit Configs ..., then select tests and enter any JVM options you want.



+1


source







All Articles