Steps to reproduce:
-
git clone https://github.com/gatling/gatling-gradle-plugin-demo-kotlin
-
Change class name
ComputerDatabaseSimulation
toComputerDatabaseCheckSimulation
but keep the file namesrc/gatling/kotlin/computerdatabase/ComputerDatabaseSimulation.kt
-
Start the simulation by its new FQCN
Result: success but no simulation is executed:
./gradlew gatlingRun-computerdatabase.ComputerDatabaseCheckSimulation
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.6/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD SUCCESSFUL in 414ms
6 actionable tasks: 1 executed, 5 up-to-date
Expected result:
The simulation is executed, as it is, when the class name is the same as the file name.
Use Case:
I want to have several similar simulations which differ e.g. only by the injection properties but which execute the same scenario.
And I want to keep them in the same file to avoid having many files with only little differnces.
I would even like to define the simulation in inner classes of the class defining the scenario, which is also not possible at all currently.
How can I achive this with the gatling gradle plugin?