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

feat: Controller 테스트에서 Application Context 재활용하도록 변경 (#78) #80

Merged
merged 1 commit into from
Jan 6, 2024

Conversation

seokjin8678
Copy link
Contributor

관련 이슈

PR 세부 내용

DescribeSpec을 상속한 ControllerTestSpec을 만들어서, Controller 테스트에 적용하여, Application Context를 재활용 하도록 하였습니다!
이 경우, Controller 클래스가 의존하는 Service 클래스를 모두 빈으로 등록해야 하는 노가다 과정이 필요한데, 이 과정은 BeanFactoryPostProcessor를 사용하여 패키지 내 @Service 어노테이션이 붙은 클래스를 목으로 만들어 자동화 하였습니다!

Copy link

github-actions bot commented Jan 6, 2024

Test Results

21 files  21 suites   4s ⏱️
71 tests 71 ✅ 0 💤 0 ❌
94 runs  94 ✅ 0 💤 0 ❌

Results for commit e4038cf.

@Laeng Laeng merged commit 579318f into dev Jan 6, 2024
3 checks passed
@Laeng Laeng deleted the feat/#78 branch January 6, 2024 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

test: Controller 테스트에서 ApplicationContext 재사용을 통해 성능을 개선한다.
2 participants