1 Star 0 Fork 14

王朝/bm_pytest_api

forked from 李超凡/bm_pytest_api 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
run.py 401 Bytes
一键复制 编辑 原始数据 按行查看 历史
李超凡 提交于 2022-01-14 14:24 . 新增保存allure报告到本地命令
import pytest
import os
import shutil
if __name__ == '__main__':
try:
# 删除之前的文件夹
shutil.rmtree("report")
print('清除之前报告')
except:
pass
pytest.main([])
#直接生成报告html文件
os.system('allure generate -o report/re')
# 编译报告原文件并启动报告服务
os.system('allure serve report/allure_raw')
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/chaocheng_king/bm_pytest_api.git
git@gitee.com:chaocheng_king/bm_pytest_api.git
chaocheng_king
bm_pytest_api
bm_pytest_api
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385