pip install pytest-html 安裝插件命令行執(zhí)行: pytest --html=report_name.html (report_name是存放路徑及名稱)報告樣式: @william胡陽