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/test #10

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from
Open

Feat/test #10

wants to merge 4 commits into from

Conversation

FacerAin
Copy link
Contributor

@FacerAin FacerAin commented Jan 2, 2023

Description

테스트 코드와 프로파일링 코드를 추가하였습니다.

실행방법

코드 테스팅 및 커버리지 측정
make test
make coverage

프로파일링
make profile

자세한 프로파일링 코드는 tests/profile_retrieval.py에서 확인 가능합니다.

Related Issue

None.

@FacerAin FacerAin requested a review from jinmyeongAN January 2, 2023 09:00
Copy link
Contributor

@jinmyeongAN jinmyeongAN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

프로파일링과 테스트 코드 정말 멋집니다. 고생많으셨어요!


test_object = ProfileRetrieval()
profiler = Profile()
profiler.runcall(test_object.test)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이거 너무 좋네요!!
파이썬 같은 동적인 언어에는 반드시 필요한 존재 같아요



class TestArguments(unittest.TestCase):
@classmethod
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아래 preprocess나 retrieval 클래스 안에 있는 setUP함수와 달리 TestArgumentssetUpClass 함수는 왜 클래스 메서드를 사용하는지 궁금해요

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

사실 큰 이유 없는 레거시 코드의 흔적 입니다....!! 의견 감사합니다!! 😊

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.

2 participants