I have define two simulation class inside package -
src/gatling/java/com.demo.PaymentOne
src/gatling/java/com.demo.PaymentTwo
Now, when I am running gradle gatlingRun task from intellij, simulations are not executing. Logs are provided below -
Task :compileScala NO-SOURCE
Task :processResources
Task :classes
Task :compileTestJava
Task :compileTestScala NO-SOURCE
Task :processTestResources NO-SOURCE
Task :testClasses
Task :compileGatlingJava
Task :compileGatlingScala NO-SOURCE
Task :processGatlingResources
Task :gatlingClasses
Task :gatlingLogback
Task :gatlingRun
BUILD SUCCESSFUL in 1m 6s
7 actionable tasks: 7 executed
But, when I am running gradle gatlingRun-com.demo.PaymentOne task from intellij, simulations are executing.
The problem is, gatlingRun should run all the simulations residing in src/gatling/java.
Gradle build configuration -
id ‘io.gatling.gradle’ version ‘3.8.2’
gatling {
// WARNING: options below only work when logback config file isn’t provided
logLevel = ‘WARN’ // logback root level
logHttp = ‘ALL’ // set to ‘ALL’ for all HTTP traffic in TRACE, ‘FAILURES’ for failed HTTP traffic in DEBUG
}