Skip to content

Coverage.py

Code coverage measurement for Python.

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.

예외처리

코드 안에서 예외처리 하는 방법:

  • # pragma: no cover 주석이 포함된 한 줄.
  • 또는 # nocov 또는 # noqa 주석이 포함된 한 줄.
  • tox.ini 파일의 [report] 항목, exclude_lines 참조.

Troubleshooting

exec 이후 coverage.py 오작동 발생

Python:builtins#exec 이후 coverage.py 오작동 발생 항목 참조.

See also

Favorite site