u010761483 2020-06-23 12:10 采纳率: 0%
浏览 669
已结题

pyinstaller 打包 pytest+allure 自动化测试框架后运行报错,请高手帮忙指点下

1.程序运行正常,在使用pyinstaller打成 .exe可执行文件后,双击运行报如下错误:

Auto_Runner_Api_Main.exe 程序执行时报如下错误:

ERROR: usage: Auto_Runner_Api_Main.exe [options] [file_or_dir] [file_or_dir] [...]

Auto_Runner_Api_Main.exe: error: unrecognized arguments: --alluredir=\ApiTestReport --clean-alluredir

inifile: None

rootdir: C:\Users\oscar\eclipse-workspace\AutoRunner_ApiPlatform\src\dist


注:本机已按装allure-pytest插件,将参数'--alluredir=\ApiTestReport', '--clean-alluredir'去掉打包成exe可以正常运行,难道 allure_pytest 包没打进去吗

  • 写回答

10条回答 默认 最新

  • u010761483 2020-06-23 16:10
    关注

    哪位大佬给指点下呢!感谢!

    评论

报告相同问题?