1 Star 1 Fork 47

setcreed / pytest_api_yaml

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
run_test.py 542 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
@time : 2022/6/15
@Author : LL
@File : run_test.py
'''
import pytest
import os
import shutil
if __name__ == '__main__':
try:
# 删除之前的文件夹
shutil.rmtree("report")
print('清除之前报告')
except:
pass
pytest.main([])
# 直接生成报告html文件
# os.system('allure generate report/data -o report/html --clean')
# 编译报告原文件并启动报告服务
os.system('allure serve report/data -p 2008')
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/setcreed/pytest_api_yaml.git
git@gitee.com:setcreed/pytest_api_yaml.git
setcreed
pytest_api_yaml
pytest_api_yaml
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891