pytest 에서 code coverage 사용: 얼만큼 코드에 대해서 테스트를 하는가 확인.
python unit test 를 pytest 로 이용할 때 내가 만든 스크립트에 대해서 test code 들이 모두 다 커버하고 있는지 확인할 필요가 있다. 이때는 pytest-cov 를 사용한다. 참조: Reporting — pytest-cov 2.11.1 documentation Reporting It is possible to generate any combination of the reports for a single test run. The available reports are terminal (with or without missing line numbers shown), HTML, XML and annotated source code. The terminal report without l..
컴퓨터관련 쪽지
2021. 3. 25. 13:28