我们正在使用maven-jmeter-plugin,我已经设置了一个jmeter配置文件。当我运行mvn -Pjmeter verify时,各种maven生命周期都会运行,但它们都不需要运行。
如何只运行JMeter测试?
<profile>
<id>jmeter</id>
<build>
<plugins>
<plugin>
<groupId>com.lazerycode.jmeter</groupId>
<artifactId>jmeter-maven-plugin</artifactId>
<version>${jmeter.version}</version>
<executions>
<execution>
<id>jmeter-tests</id>
<phase>verify</phase>
<goals>
<goal>jmeter</goal>
</goals>
</execution>
</executions>
<configuration>
<testResultsTimestamp>false</testResultsTimestamp>
</configuration>
</plugin>
</plugins>
</build>
</profile>发布于 2013-07-23 17:22:12
不幸的是,该插件的作者似乎没有实现支持直接调用的MOJO,因此该插件必须作为生命周期执行的一部分-在<build>部分中。
发布于 2014-02-05 23:32:43
您可以使用以下命令仅运行JMeter测试:
mvn jmeter:jmeter -Pjmeter要查看其余目标,您可以执行以下命令:
mvn help:describe -DgroupId=com.lazerycode.jmeter -DartifactId=jmeter-maven-plugin -Ddetail=truehttps://stackoverflow.com/questions/17799639
复制相似问题