Hi all,
I am trying to run multiple simulations one after the other using gradle with no luck so far. I am presented with a choice in the console with the following build.gradle code. If anyone can help that would be great.
apply plugin: 'scala'
apply plugin: 'idea'
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
compile 'org.scala-lang:scala-library:2.11.7'
testCompile 'io.gatling:gatling-http:2.2.0-M3'
testCompile 'io.gatling:gatling-core:2.2.0-M3'
testCompile 'io.gatling.highcharts:gatling-charts-highcharts:2.2.0-M3'
testCompile 'io.gatling:gatling-app:2.2.0-M3'
testCompile 'junit:junit:4.12'
testCompile 'org.scalatest:scalatest_2.10:3.0.0-M10'
}
sourceSets {
test {
scala {
srcDir 'src/test/scala/com/sky/catfeed'
}
resources {
srcDir 'src/test/resources'
}
compileClasspath += sourceSets.test.compileClasspath
}
}
task loadTest(type: JavaExec) {
dependsOn testClasses
description = "load test with Gatling"
group = "Load Test"
classpath = sourceSets.test.runtimeClasspath
jvmArgs = [
"-Dgatling.core.directory.binaries=${sourceSets.test.output.classesDir.toString()}",
]
main = "io.gatling.app.Gatling"
args = [
"--simulations-folder", sourceSets.test.scala.srcDirs,
"--results-folder", "${buildDir}/gatling-results",
"--binaries-folder", sourceSets.test.output.classesDir.toString(),
"--bodies-folder", sourceSets.test.resources.srcDirs.toList().first().toString() + "/gatling/bodies",
]
}