코딩 교육 TIL

2024-05-03 AI 코딩 TIL

HyunjunPark 2024. 5. 3. 20:38
매일 기록하는 5분 기록 보드

시간이 날때 마다 생각이 날때마다 하나씩 적어줄 수 있도록 합니다.

django 에서 test를 할 수 있는 방법을 배웠습니다!.

우와 이런걸 할 수 있는 방법이 있을 줄이야...

Testing in Django | Django documentation | Django (djangoproject.com)

 

Testing in Django | Django documentation

The web framework for perfectionists with deadlines.

docs.djangoproject.com

이걸 이용해서 commit를 하기전이나 merge를 하기전에 test를 통해서 합격이 되면 진행이 될 수 있도록 하는 방법도 있습니다.

이런 기능을 잘 이용할 수록 더욱 잘 통합을 할 수 있을 것 같습니다.

test는 각 기능 마다 만들어 두면 에러예방에도 좋고 협업에서도 좋은 거 같다는 생각이 듭니다!

 

부하 테스트 하기!

Installation — Locust 2.26.0 documentation

 

Installation — Locust 2.26.0 documentation

Pre-release builds If you need the latest and greatest version of Locust and cannot wait for the next release, you can install a dev build like this: $ pip3 install -U --pre locust Pre-release builds are published every time a branch/PR is merged into mast

docs.locust.io

무작위 요청을 마구마구 받아서 부하테스트를 할 수 있습니다.