Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
Archives
- Today
- Total
목록테스트 코드 (1)
개발노트

개요단위 테스트를 할 때는 상관없었는데 통합테스트를 진행하니 운영중인 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