Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

karrot-0013: TEST DB H2 > docker compose 변경 #24

Open
tae0y opened this issue Apr 23, 2023 · 1 comment
Open

karrot-0013: TEST DB H2 > docker compose 변경 #24

tae0y opened this issue Apr 23, 2023 · 1 comment
Assignees

Comments

@tae0y
Copy link
Contributor

tae0y commented Apr 23, 2023

  • 테스트/운영DB를 맞추기 위해 H2대신 docker compose사용을 제안
    • 특장점은 DB종속적인 쿼리/문법을 테스트하기 좋다는점
    • 그외에는 H2와 비교해서 장단점이 거의 비슷하다(독립적인 테스트환경, 초기설정시 부하 등)
    • testcontainer 라이브러리 사용하여 테스트시 자동으로 docker구동/삭제
    • maven test시 인식이 안되면 run configuration에서 Junit으로 test 한번 돌리면 잘 인식됨
@tae0y
Copy link
Contributor Author

tae0y commented Apr 23, 2023

점점 느려짐. 관련 라이브러리를 설치하려고 도커 빌드파일도 추가하고, 데이터를 유지하려고 볼륨도 추가함.
속도 때문에라도 테스트할때는 계속 인메모리 쓰는게 더 좋을것 같음.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant