在pycharm中安裝pytest:pip install pytest

安裝pytest自帶的測試報告包: pip install pytest-html

安裝pytest自帶的測試報告包: pip install pytest-html

官網下載allure : https://github.com/allure-framework/allure2/releases
然后配置allure ,
先找到下載好的allure ,進去bin目錄,復制路徑:

在系統變量path中添加:對應的allure安裝路徑

下一步:

驗證是否配置成功
成功的標志是:

未配置成功的標志:

