英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论