几个写的比较好的文章链接,讲的非常详细。 一、Python+unittest+htmlreport Python必会的单元测试框架 —— unittest 二、Python+Allure 用Pytest+Allure生成漂亮的HTML图形化测试报告 三、Pytest+Allure pytest+allure环境搭建和使用