Allure安装

Allure是⼀个独⽴的报告插件,⽣成美观易读的报告;
⽬前⽀持语⾔:Java, PHP, Ruby, Python, Scala, C#
Allure安装
安装pytest的插件包pytest-allure-adaptor:
pip3 install pytest-allure-adaptor
 
最好使⽤pytest3.8版本 pip3 install pytest==3.8.0
Allure帮助⽂档
https://docs.qameta.io/allure/#_about
Allure报告
⽀持命令⾏ 和 配置⽂件两种⽅式
pytest --alluredir report
# 在执⾏命令⽬录⽣成report⽂件夹,⽂件夹下包含xml⽂件
项⽬配置⽂件: pytest.ini
项⽬配置⽂件: pytest.ini
posted @ 2020-04-09 18:43  上海颖  阅读(158)  评论(0编辑  收藏  举报