Closed novice1993 closed 3 weeks ago
https://github.com/user-attachments/assets/b6353c3f-3d62-42e4-99f8-d647ae08a898
vscode/src/utils/git.tils.ts
getGitLog
test repository
Django
.gitignore
console.time/console.timeEnd
getGitLog Execution Time
"node ./out/test/runTest.js"
" ~ Download VS Code, unzip it and run the integration test ~ "
test:e2e
test:unit
@ytaek
리뷰 해주신 내용 두 가지
반영하여 업데이트 했습니다. 검토 부탁드립니다!
Related issue
681
Result
https://github.com/user-attachments/assets/b6353c3f-3d62-42e4-99f8-d647ae08a898
Work list
vscode/src/utils/git.tils.ts
에 선언된getGitLog
함수를 테스트 하는 코드입니다test repository
로 설정한 원격 저장소에서 git clone을 받은 후, 해당 git 데이터를 활용하여 테스트를 진행합니다test repository
는Django
로 설정하였습니다 (커밋 개수 30,000개 이상으로, 성능 측정에 적합한 케이스라고 판단)test repository
를 제거하여 패키지에 해당 파일이 남지 않도록 처리하였습니다 (.gitignore
에test repository
를 추가하여 오류로test repository
가 제거되지 않아도 문제가 발생하지 않도록 설정)console.time/console.timeEnd
메서드를 활용하여getGitLog
함수의 처리 시간을 측정할 수 있도록 구현하였습니다 (타이머 라벨명 :getGitLog Execution Time
)Discussion
"node ./out/test/runTest.js"
)" ~ Download VS Code, unzip it and run the integration test ~ "
)test:e2e
로 수정하고 unit 테스트 관련 스크립트를test:unit
로 추가