I’d like to use Gatling for testing some stuff other than http. Looking at other extensions, it seems like the usual way to do this is to generate a jar with the code you need, and drop that jar in the lib dir of the gatling bundle. If your code has dependencies though, you have to be careful to also include all the dependency jars, while carefully excluding duplicate jars like scala-lib or logging libraries, and so forth.
I’m getting tired of doing this though. Rather than manually track dependencies and carefully copy jars around, what I’d prefer is proper dependency management. I’m already a scala developer, I don’t mind editing a build.sbt to include the stuff I want.
Is there a way to programmatically run gatling? Can I create a top-level project, include a gatling library (and whatever else) as a dependency, write a Simulation class, and write a little code to mimic the command line script as a main class?
Thanks.