是在 pycharm 里面打开的吗,或者用火狐浏览器打开
我的也是,allure-pytest 这个包只能生成 json 和 txt 文件,生成报告就告诉我没有找到 allure 结果
Exception in thread "main" ru.yandex.qatools.allure.data.ReportGenerationExcepti
on: Could not find any allure results
at ru.yandex.qatools.allure.data.AllureReportGenerator.generate(AllureRe
portGenerator.java:58)
at ru.yandex.qatools.allure.data.AllureReportGenerator.generate(AllureRe
portGenerator.java:53)
at ru.yandex.qatools.allure.AllureMain.main(AllureMain.java:48)
Command aborted due to exception {}.
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit
value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecut
or.java:404)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
166)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
153)
at ru.yandex.qatools.allure.command.ReportGenerate.runUnsafe(ReportGener
ate.java:48)
at ru.yandex.qatools.allure.command.AbstractCommand.run(AbstractCommand.
java:52)
at ru.yandex.qatools.allure.CommandLine.main(CommandLine.java:46)
请问层主的问题解决了吗,我也是单独 pytest-allure-adaptor 是可以生成 XML 文件的,但是加上@allure.feature和@allure.story就会报错 INTERNALERROR,如果单独 allure-pytest 只会生成 json 和 txt 文件,两个都装时报 ValueError: option names {'--alluredir'} already added