Linux环境生成allure测试报告
Linux环境生成allure测试报告报错:
# allure serve report/json/
Generating report to temp directory...
Report successfully generated to /tmp/2244791170898810429/allure-report
Starting web server...
2024-02-04 17:30:17.060:INFO::main: Logging initialized @968ms to org.eclipse.jetty.util.log.StdErrLog
Exception in thread "main" java.awt.AWTError: Can't connect to X11 window server using 'localhost:10.0' as the
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:65)
at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:115)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:74)
at java.lang.Class.forName0(Native Method)
at java.lang.Class