0
votes

I am trying to run jmeter tests with jmeter maven plugin as shown in https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/wiki/Configuring-the-jvm-that-the-jmeter-process-runs-in

When I run mvn verify it runs the jmeter test but also all the unit tests under src/test/. Is there a way that I can skip unit tests and only run the jmeter test?

Thanks in advance!

1

1 Answers

-1
votes

The easiest is just running single jmeter goal like:

mvn jmeter:jmeter

this way you will run only performance tests, all other build procedures will be skipped.

A harder but more flexible way would be using Maven Builde Profiles, see Maven – How to skip unit test

More information: How to Use the JMeter Maven Plugin