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