Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 285 Bytes

Coverage Metrics with Python.md

File metadata and controls

13 lines (10 loc) · 285 Bytes

Tags: #python #testing

Create coverage metrics and generate HTML in the current directory:

$ coverage -m pytest tests/test_foo.py
$ coverage html

Serve it with a local web server that lists on localhost:8000:

$ python -m http.server --bind localhost 8000