Hello, everyone!
I have a question. I see a lot of tutorials on the official site on how to execute a simulation with the Gatling Gradle plugin. But I have the following question.
Can I create a specific gatling-type task and pass the parameter inside? For example:
task mySpecificTaskOne(type: gatling) {
simulations = {
include "**/com/my/first/package/**Simulation.java"
}
}
task mySpecificTaskSecond(type: gatling) {
simulations = {
include "**/com/my/second/package/**Simulation.java"
}
}
Why I need this solution?
- I want to divide the execution of simulations into packages and simplify the launch command from this one:
- ./gradlew gatlingRun-singleFirstSimulation…
- ./gradlew gatlingRun-singleN…Simulation
to another one, just run two or whatever I want tasks:
- /.gradlew mySpecificTaskOne
- /.gradlew mySpecificTaskSecond
Thanks!