Hello,
I have had quite a bit of trouble integrating Gatling into something I am working on. The main reason is being that I am not a huge fan of Maven and find it rather very painful to work with.
So I found that Leiningen is much easier to use, so here is the gits: https://gist.github.com/4517937
It make my life much easier, hopefully it will help others too!
Note that your project doesn’t need to be written in Clojure in order to take advantage of this.
Leiningen is very simple to install, all you need is a shell script in your path and JVM installed (see http://leiningen.org/).
You can just use this type of structure -
- create a subdirectory
load_test
- copy https://gist.github.com/4517937 into
load_tests/project.clj
- put Gatling scenarios into
load_tests/scenarios/
cd load_test; lein run --
Please note that Leiningen will download all the dependencies on the first run, but will not do it again
You could also use lein uberjar
to build one big jar of everything, but I have figured out how to include compiled simulations into it as ZincCompiler gets on my way ;(
It works nevertheless!
Cheers,