1 Star 0 Fork 5

tgz0514/amt_pytest_allure

forked from LiuFeiYu/amt_pytest_allure 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
main.bat 713 Bytes
一键复制 编辑 原始数据 按行查看 历史
LiuFeiYu 提交于 2019-09-27 17:26 . [test]更新编码问题
@echo off
if "%1" == "max" goto top
start "" /max "%~nx0" max
exit
:top
echo [step 0] - initialize report parameters
set reruns=3
set test_target=.\TestCase
set allure_target=.\Report\xml\
set allure_report=.\Report\html\
echo [step 1] - remove all documents in allure report root
del /a /f /q %allure_report%
echo [step 2] - starting pytest
pytest %test_target% --reruns %reruns% --alluredir=%allure_target%
echo [step 3] - finished pytest and starting generate allure report
call allure generate -c %allure_target% -o %allure_report%
echo [step 4] - open allure report by jetty
allure open %allure_report%
echo [step 5] - report has been generated successfully!
echo press any key to exit...
pause & exit
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/tgz0514/PytestApiCode.git
git@gitee.com:tgz0514/PytestApiCode.git
tgz0514
PytestApiCode
amt_pytest_allure
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385