def coverage():
"""check code coverage quickly with the default Python"""
run("coverage run --source {PROJECT_NAME} -m py.test".format(PROJECT_NAME=PROJECT_NAME))
run("coverage report -m")
run("coverage html")
if sys.stdout.isatty():
# Running in a real terminal
webbrowser.open('file://' + os.path.realpath("htmlcov/index.html"), new=2)
评论列表
文章目录