如何在 Jmeter Maven 插件中启用报告?

How to enable reporting in Jmeter Maven Plugin?

使用 Jmeter Maven 插件,从 1.5 版开始,默认情况下禁用报告,根据:https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/issues/42

我已经搜索了很多年,但找不到重新启用报告的设置。有人可以帮忙吗?

您为问题提供了 link,但没有检查提交。

Ardesco referenced this issue from a commit on Mar 12, 2012
#42 Reporting disabled by default due to the extreme amount of time it currently takes to build reports from large log files.
2ca9e03

检查提交 2ca9e03 您可以看到发生了什么变化,

private boolean enableReports = false;

然后追踪设置 enableReports 的位置:

https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/blob/2ca9e033250e3990f583a0b6ebe9e3609155a6af/src/main/java/com/lazerycode/jmeter/configuration/ReportConfiguration.java#L80

感谢 Will 的帮助,经过进一步挖掘,我最终发现报告实际上是从 1.5.0 版本开始完全删除的

https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/commit/7e1b42d0c669054df6827ab4f83a94409ed33122

要使报告正常工作,需要使用单独的插件:jmeter-analysis-maven-plugin