본문 바로가기

개발노트

검색하기
개발노트
프로필사진 ddong-kka

  • 분류 전체보기 (40)
    • MSA (7)
    • Java (2)
    • Spring Boot (7)
    • DevOps (7)
    • DataBase (3)
    • Algorithm (6)
    • TroubleShooting (8)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/06   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
Tags
  • 유효성 검사
  • JWT
  • DevOps
  • AWS
  • CI/CD
  • Intellij
  • 객체지향원칙
  • querydls
  • aop
  • Til
  • Github Actions
  • 프로그래머스
  • trouble shooting
  • algorithm
  • 테스트 코드
  • JPA
  • springboot
  • Java
  • docker
  • 어노테이션
  • MSA
  • swagger
  • spring boot
  • Kafka
  • rabbitmq
  • algorihm
  • testcode
  • 멀티 모듈
  • Redis
  • EC2
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록테스트 코드 (1)

개발노트

25.02.25 통합테스트 DB 환경 분리

개요단위 테스트를 할 때는 상관없었는데 통합테스트를 진행하니 운영중인 DB의 데이터도 테스트에 포함되어 문제가 발생했다. 이를 개선하기위해 통합테스트 환경에서는 H2 데이터베이스를 사용하도록 DB 환경을 분리해보겠다. application-test.yml 파일 생성기존의 apllication.yml 과 똑같은 위치에 application-test.yml파일을 생성해준다. spring: datasource: driver-class-name: org.h2.Driver hikari.jdbc-url: jdbc:h2:mem:test_db; username: testdb password: jpa: hibernate: ddl-auto: create-drop show-sql..

Spring Boot 2025. 2. 25. 01:05
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바