allure generate report 与 allure serve 的区别

huangapple go评论92阅读模式
英文:

Difference between allure generate report and allure serve

问题

我想知道allure报告命令中"generate"和"serve"之间的区别是什么。

当我在终端中输入"allure --help"时,我看到的是默认的说明,对我没有太大帮助。

generate 生成报告
用法:generate [选项] allure结果所在的目录

serve 服务报告
用法:serve [选项] allure结果所在的目录

有人能解释一下我应该何时使用"generate"或"serve"来获取报告吗?

我使用Selenium + TestNg + Allure2。

英文:

I'm wondering what the difference is between allure report commands 'generate' and 'serve'.

When I enter 'allure --help' in my terminal then I see default explanation that doesn't help a lot.

  generate      Generate the report
  Usage: generate [options] The directories with allure results

  serve      Serve the report
  Usage: serve [options] The directories with allure results

Could anyone explain when should I use 'generate' or 'serve' to get a report?

I use Selenium + TestNg + Allure2.

答案1

得分: 2

Allure生成,只生成包含所有测试结果资源的Allure报告目录。Allure服务启动一个带有结果、仪表板等的Web服务器。Allure服务依赖于Allure报告目录。因此,如果您需要打开带有测试结果的Web服务器,您需要在执行Allure服务之前执行Allure生成。

英文:

Allure generate, just generate allure-report directory, with all test results resources. Allure serve start a web server, with results, dashboards, etc. Allure serve depends on allure report directory. So, if you need to open web server with test results, you need to execute allure generate before allure serve.

huangapple
  • 本文由 发表于 2023年7月3日 15:08:41
  • 转载请务必保留本文链接:https://go.coder-hub.com/76602556.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定