From de9871a0b8baa3d6db5458eb980f9dbb4cc481ae Mon Sep 17 00:00:00 2001 From: nahowo Date: Sun, 18 May 2025 10:38:50 +0900 Subject: [PATCH] =?UTF-8?q?jacoco=20=EC=84=A4=EC=A0=95=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 6e8ca12..dcb361a 100644 --- a/build.gradle +++ b/build.gradle @@ -4,6 +4,11 @@ plugins { id 'io.spring.dependency-management' version '1.1.4' id 'org.hibernate.orm' version '6.4.4.Final' id 'org.graalvm.buildtools.native' version '0.9.28' + id 'jacoco' +} + +jacoco { + toolVersion = "0.8.12" } group = 'com.Alchive' @@ -64,13 +69,22 @@ dependencies { implementation 'org.springframework.boot:spring-boot-starter-data-redis' } -tasks.named('test') { +test { useJUnitPlatform() + finalizedBy jacocoTestReport +} + +jacocoTestReport { + dependsOn test + reports { + xml.required = false + html.required = true + } } hibernate { enhancement { - enableAssociationManagement = true + enableAssociationManagement = false } }