IntelliJ increases heap scale space

I use IntelliJ to run Scalatest tests. The problem I am facing is that the tests end up from the heap space (probably due to the fact that my tests use Selenium and start the berths to hit my Api).

I know how to increase my heap space in IntelliJ, but after increasing the space, tests still end out of the heap.

Is there another place to increase heap space for tests, and not the usual IntelliJ info.plist (oh, by the way, I'm on a Mac)

+4
source share
2 answers

go to Edit Configurations :

enter image description here

Select the test on the left and configure its VM options :

enter image description here


If you are using ScalaTest ant task , you can install jvmarg :

 <jvmarg value="-Xmx2048m -XX:MaxPermSize=128m"/> 
+9
source

As you rightly noted, you need to increase the IDEA heap size, not the ScalaTest configuration version available in the Run> Change Configurations ... dialog box. There you should set the Virtual Machine Settings for the tests you are trying to run.

+2
source

Source: https://habr.com/ru/post/1402885/


All Articles