Use gradle to run gatling tests
Global gatling configs can be set in conf/gatling.conf file
Data files for Feeds should be put in data/ dir
gradle gatling
or
gradle clean gatling
If your gatling tests expect JavaOpt arguments
gradle clean gatling -PjvmArgs="-Dusers=10"
By default all simulations are run, if you want to only run a single simulation**
gradle clean gatling -Psim="{simulation}"
gradle listSims
gradle gatling -PignoreSims={sim}
or
gradle gatling -PignoreSims={sim},{sim}
Just get simulation.log files written:
gradle gatling -PnoReport
Collect all the simulation logs and write a single report for all:
gradle mergeReport
The ignoreSims
works with this command as well:
gradle gatling -PignoreSims={sim},{sim} -PnoReport
Using them all together:
gradle gatling -PignoreSims={sim},{sim} -PnoReport mergeReport
All reports are saved in build/reports/
If using the mergeReport
feature the files will by default be in build/reports/mergedSimulationLogs/
gatling
listSims
mergeReport
To use add -P
before the modification.
ignoreSims
noReport
sim
gradle eclipse
or
gradle idea