테스트 격리 방법과 차이 #122
Replies: 2 comments
-
@DirtyContext
@SQL truncate
@transactional
번외 @ExtendWith
해당 어노테이션을 활용해, 임의로 만들어둔 DB 초기화 및 테스트 별로 격리되어야 하는 부분을 구현한 클래스를 확장하여 사용함으로서 테스트 격리를 할 수 있습니다. 개인적으로 DirtyContext를 사용하는 것이 가장 확실한 테스트 격리 방법이지만, 실행 시간이 극단적으로 길어져서 , 다른 방식의 테스트 격리 방법을 활용했던 경험이 있습니다. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
@DirtyContext@Sqltruncate@Transactional번외
Extension
Beta Was this translation helpful? Give feedback.
All reactions