如何使用 Gatling Maven 插件 运行 单个 test/simulation?

How to run a single test/simulation with Gatling Maven plugin?

是否可以 运行 只有一个 test/simulation 带有带有命令行参数的 Gatling Maven 插件?类似于 SBT 插件 testOnly.

这可以通过参数 gatling.simulationClass 实现,例如

mvn gatling:test -Dgatling.simulationClass=foo.bar.MySimulation

(使用 Gatling Maven 插件 3.1.1)

一般情况下,不同的参数可以看到

mvn gatling:help -Ddetail=true