서버 프로그래밍
Python 테스트 커버리지 확인
나숑
2020. 7. 17. 22:24
작성한 unit test가 어느 정도의 소스 코드에 대한 테스트를 커버하고 있는지 확인할때 사용한다.
$ python -m unittest discover
$ coverage run -m unittest discover
https://coverage.readthedocs.io/en/coverage-5.2/
Coverage.py — Coverage.py 5.2 documentation
Coverage.py is a tool for measuring code coverage of Python programs. It monitors your program, noting which parts of the code have been executed, then analyzes the source to identify code that could have been executed but was not. Coverage measurement is
coverage.readthedocs.io
https://lsjsj92.tistory.com/574
test code coverage(코드 커버리지)란? Python test code coverage 방법
포스팅 개요 이번 포스팅은 test code coverage에 대해서 알아봅니다. 그냥 코드 커버리지(code coverage)라고도 불리우는 방법입니다. 그리고 파이썬(Python)에서 test code coverage를 하는 방법에 대해서도 함
lsjsj92.tistory.com