java: OutOfMemoryError: insufficient memory while running JUnits in Idea

前端 未结 5 1613
一整个雨季
一整个雨季 2021-01-07 23:20

I am trying to run JUnits from my IntelliJ Idea When I try to run the Test.java file it gives me an error saying that

java: OutOfMemoryError: insuffic

5条回答
  •  温柔的废话
    2021-01-07 23:52

    In my case, my SpringBootTest configuration has Build (whole project) gradle task in "Before launch". So that's my omission. Eliminating that and issue's gone away.

    Or Settings -> Compiler : increase build heap size

提交回复
热议问题