我正在尝试使用jmeter maven插件运行jmeter测试,如https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/wiki/Configuring-the-jvm-that-the-jmeter-process-runs-in中所示。
当我运行mvn时,验证它不仅运行jmeter测试,还运行src/ test /下的所有单元测试。有没有办法跳过单元测试,只运行jmeter测试?
提前感谢!
发布于 2021-04-30 15:23:14
最简单的就是像这样的running single jmeter goal:
mvn jmeter:jmeter这样,您将只运行性能测试,所有其他构建过程将被跳过。
一种更难但更灵活的方法是使用Maven Builde Profiles,请参阅Maven – How to skip unit test
https://stackoverflow.com/questions/67325066
复制相似问题