First of all, congratulations to the Gatling team for this awesome project !!!
I’d like to develop a Maven plugin for Gatling, in order to play simulations from a CI.
The plugin configuration looks like this :
com.excilys.ebi.gatling
gatling-maven-plugin
1.1.0
src/main/gatling Home directory by default src/main/gatling
src/main/gatling/conf Directory where configuration is stored by default ${home}/conf
src/main/resources Directory where simulations are stored by default ${home}/user-files/simulations
Pattern to excludes simulations
**/test/**
Pattern to includes simulations by default *.txt, *.scala
*.txt
src/main/gatling/user-files/data Directory where data files are stored by default ${home}/user-files/data
src/main/gatling/user-files/data Directory where request bodies are stored by default ${home}/user-files/request-bodies
true No report option by default 'false'
execute
I’ll push my modifications as soon as I can (wednesday night max I hope )
As of the project tree, did you have a look at our maven archetype ? It could be great to have the same trees between them. Indeed one could easily create a project that would be run by your plugin.
Actually, having something to plug Gatling on a CI is something we had in mind.
So, yes, that’s a great idea!
We’re investigating new CLI parameters that would force the simulation files and bypass the menu.
Once this is done, one will already be able to plug Gatling on a CI platform with the maven-antrun-plugin, but this solution will require to manually install Gatling.
This plugin would be a great integrated, plug-and-play solution.
Just a few questions/remarks :
the default value should point to test resources, not main resources
would Gatling run in the same JVM as maven? If yes, one would have to tweak the MAVEN_OPTS.
Cheers,