From e7b67e8fa9d511ee70f3b2a7082222b3eceea97c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=86=90=ED=99=8D=EC=84=9D?= <78216059+bayy1216@users.noreply.github.com> Date: Mon, 26 Aug 2024 19:10:45 +0900 Subject: [PATCH] =?UTF-8?q?[Feat]:=20ci=20test=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 2 +- .../novelcia/domain/novel/usecase/NovelScoringUseCaseTest.kt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b1c3c1c..6be0e56 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -41,7 +41,7 @@ jobs: - name: Setup Gradle # Gradle을 설정합니다. run: | chmod +x ./gradlew - ./gradlew clean build -x test --parallel + ./gradlew clean build --parallel - name: Build docker image # 도커 이미지를 빌드합니다. run: | diff --git a/src/test/kotlin/com/reditus/novelcia/domain/novel/usecase/NovelScoringUseCaseTest.kt b/src/test/kotlin/com/reditus/novelcia/domain/novel/usecase/NovelScoringUseCaseTest.kt index 0ce8e15..cf4f42a 100644 --- a/src/test/kotlin/com/reditus/novelcia/domain/novel/usecase/NovelScoringUseCaseTest.kt +++ b/src/test/kotlin/com/reditus/novelcia/domain/novel/usecase/NovelScoringUseCaseTest.kt @@ -15,9 +15,11 @@ import org.junit.jupiter.api.Assertions.* import org.junit.jupiter.api.Tag import org.springframework.beans.factory.annotation.Autowired import org.springframework.boot.test.context.SpringBootTest +import org.springframework.transaction.annotation.Transactional @Tag("medium") @SpringBootTest +@Transactional class NovelScoringUseCaseTest @Autowired constructor( private val novelScoringUseCase: NovelScoringUseCase, private val novelRepository: NovelRepository,