Merge pull request 'chore(build): 테스트 JVM 메모리 설정을 조정한다' (#434) from test into main
Reviewed-on: #434
This commit is contained in:
@@ -102,13 +102,12 @@ tasks.withType<KotlinCompile> {
|
|||||||
tasks.withType<Test> {
|
tasks.withType<Test> {
|
||||||
useJUnitPlatform()
|
useJUnitPlatform()
|
||||||
|
|
||||||
val springContextCacheMaxSize = "1"
|
val springContextCacheMaxSize = (project.findProperty("test.springContextCacheMaxSize") as String?) ?: "1"
|
||||||
maxHeapSize = "1024m"
|
maxHeapSize = (project.findProperty("testMaxHeap") as String?) ?: "1536m"
|
||||||
maxParallelForks = 1
|
maxParallelForks = 1
|
||||||
|
|
||||||
jvmArgs(
|
jvmArgs(
|
||||||
"-Dfile.encoding=UTF-8",
|
"-Dfile.encoding=UTF-8",
|
||||||
"-XX:+HeapDumpOnOutOfMemoryError",
|
|
||||||
"-Dspring.test.context.cache.maxSize=$springContextCacheMaxSize"
|
"-Dspring.test.context.cache.maxSize=$springContextCacheMaxSize"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user