Skip to content

Latest commit

 

History

History
63 lines (45 loc) · 556 Bytes

coverage.py.md

File metadata and controls

63 lines (45 loc) · 556 Bytes

Coverage.py

Links

CLI

Dependencies

Installation

pip

pip3 install coverage

Commands

coverage help

Configuration

#
cat << EOF > ./.coveragerc
branch = True
omit =
  */migrations/*
  */apps.py
  */urls.py
  */wsgi.py
EOF

#
cat << EOF >> ./.gitignore
/htmlcov
/.coverage
/.coverage.*
EOF

Usage

#
coverage erase

#
pytest --cov=./

#
coverage html