1.安装coverage库
pip install coverage
2. 运行coverage
coverage rune --source=. -m unittest discover
3.生成report
coverage report -m