Hello, I am using Spock framework with about 1500 unit test cases in the project.
Once I run the whole test in Eclipse, it works well.
But if I running it in gradle 3.1 using: gradle project:test, after about 300 cases, it will raise java.lang.IllegalStateException > Caused by: org.springframework.beans.factory.BeanDefinitionStoreException > Caused by: java.lang.OutOfMemoryError
I am tring to enlarge memory by using --maxHeapSize or test.forkEvery, but the problem still appear.
My project is a Spring-boot project, using H2 in unit test, create-drop in each test class.