gpt4 book ai didi

allure - 如何在不自动启动浏览器的情况下提供 Allure Report

转载 作者:行者123 更新时间:2023-12-04 03:10:25 26 4
gpt4 key购买 nike

当我启动 allure ,服务器总是尝试启动浏览器:

$ /home/allure/allure-2.3.4/bin/allure serve target/allure-results -p 5012
Generating report to temp directory...
Report successfully generated to /tmp/779851636804605067/allure-report
Starting web server...
2017-08-21 17:51:00.271:INFO::main: Logging initialized @3082ms
Xlib: extension "RANDR" missing on display ":99".
Exception in thread "main" java.lang.UnsupportedOperationException: The BROWSE action is not supported on the current platform!
at java.awt.Desktop.checkActionSupport(Desktop.java:225)
at java.awt.Desktop.browse(Desktop.java:381)
at io.qameta.allure.Commands.openBrowser(Commands.java:207)
at io.qameta.allure.Commands.open(Commands.java:135)
at io.qameta.allure.Commands.serve(Commands.java:119)
at io.qameta.allure.CommandLine.run(CommandLine.java:136)
at java.util.Optional.orElseGet(Optional.java:267)
at io.qameta.allure.CommandLine.main(CommandLine.java:72)
2017-08-21 17:51:06.387:WARN:oejsh.ResourceHandler:qtp1928301845-20: org.eclipse.jetty.io.EofException
2017-08-21 17:51:06.388:WARN:oejsh.ResourceHandler:qtp1928301845-15: org.eclipse.jetty.io.EofException

问题不在于错误,而在于启动时,我不需要在此主机上启动它。
如何在不启动浏览器的情况下启动诱惑服务器?

最佳答案

您可以使用 docker 容器 Allure Docker 服务,自动识别结果并更新报告,无需执行任何操作:
https://github.com/fescobar/allure-docker-service

关于allure - 如何在不自动启动浏览器的情况下提供 Allure Report,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45809418/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com