Build and run performancetest from gradle


I have a project where we build using gradle, and we have had a setup where this also ran a Gatling performancetest from gradle.

So Gatling jar-files are downloaded as dependencies during build (gatling-app and gatling-charts-highcharts), and there is no installation of gatling-charts-highcharts-bundle-2.1.x on the build server.

So I don’t have the script to call.

Therefore I use gradle scala plugin to compile scala files and invoke the class in a custom task. But Gatling won’t find my Simulation classes.
Contrary to the documentation, Gatling does NOT accept the argument --binaries-folder which might have solved my problem.

Is there a standard solution to this??

Best regards
Ulrik Skyt

Hi, this solution works for me: