Closed ndy2 closed 2 years ago
테스트 리팩토링
전에 잠깐 말했듯이 Fixture 를 없애고 전부 BaseEntityTest 로 이동하였습니다.
앞으로는/현재만들어 져있는 메서드에 대해서도.. 도메인 테스트의 중요성이 강조될거 같은데 아마 전에 말했듣이 저장된 상태를 가정하기 위해 다른 계층형 의 Base 시리즈 처럼 비슷한 메서드들이 ReflectionTestUtil 을 사용한 형태로 등장하지 않을까 싶네요.
테스트의 계층별로 테스트를 돌리기 쉽게 junit 태그 기반으로 gradle task를 추가했습니다.
딴건 다 설정한 대로 동작하는데 controllerTest 는 controller 태그와 restdocs 테스트를 동시에 돌리네요 이유는 잘 모르겠읍니다..
223 tests 223 :heavy_check_mark: 35s :stopwatch: 71 suites 0 :zzz: 71 files 0 :x:
Results for commit 6b574cb2.
:recycle: This comment has been updated with latest results.
🛠️ 작업 내용
테스트 리팩토링
전에 잠깐 말했듯이 Fixture 를 없애고 전부 BaseEntityTest 로 이동하였습니다.
앞으로는/현재만들어 져있는 메서드에 대해서도.. 도메인 테스트의 중요성이 강조될거 같은데 아마 전에 말했듣이 저장된 상태를 가정하기 위해 다른 계층형 의 Base 시리즈 처럼 비슷한 메서드들이 ReflectionTestUtil 을 사용한 형태로 등장하지 않을까 싶네요.
테스트의 계층별로 테스트를 돌리기 쉽게 junit 태그 기반으로 gradle task를 추가했습니다.
딴건 다 설정한 대로 동작하는데 controllerTest 는 controller 태그와 restdocs 테스트를 동시에 돌리네요 이유는 잘 모르겠읍니다..