![](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FRqguL%2FbtrXJfGXHbp%2FPqL8FPE1W4kk1ZIxqaqLM0%2Fimg.png)
SpringBoot + JUnit으로 JPA 테스트하기 (mysql, mongodb)
1. build.gradle 설정 dependencies { ... // Junit5 testImplementation 'org.junit.jupiter:junit-jupiter' testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1' testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1' } test { useJUnitPlatform { includeTags 'fast' excludeTags 'slow' } } build.gradle의 dependencies와 test에 위의 코드를 추가한다. 2. application.yml 설정 원하는 DB를 연결하면 된다. 나는 MySQL과 Mongo..