Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: JMETER-0.2
-
Component/s: JMeter
-
Labels:None
-
Environment:Maven side of jsonar-jmeter-plugin, in conjuntion with maven-jmeter-plugin 1.0
-
Number of attachments :
Description
Implement JMeterPostJob for getting performance metrics in maven side parsing reports generated by maven-jmeter-plugin.
This way you could ejecute performance tests and get performance metrics all in one maven command:
mvn cargo:start org.apache.jmeter:maven-jmeter-plugin:jmeter sonar:sonar
Also, it could be a good idea in little enterprises where there isn't test environment, to deploy aplication in CI with cargo for doing a mini performance test:
mvn clean package cargo:start org.apache.jmeter:maven-jmeter-plugin:jmeter sonar:sonar
Interesting instructions to start using maven-jmeter-plugin: https://github.com/Ronnie76er/jmeter-maven-plugin/wiki
Basically, how to install dependencies and that you have to put JMeter tests and jmeter.properties inside src/test/jmeter in the project you want to test.
Despite that, to get sonar-jmeter-plugin working in maven side, there must not be jmeter-sonar-plugin configuration values set in sonar server (all of them must be blank) and maven-jmeter-plugin must be configured this way in the project pom:
<plugin> <groupId>org.apache.jmeter</groupId> <artifactId>maven-jmeter-plugin</artifactId> <version>1.0-GA</version> <configuration> <reportDir>${project.build.directory}/jmeter-reports</reportDir> </configuration> </plugin>