diff --git a/pkg/commands/commands.go b/pkg/commands/commands.go index aacf3c6..518d89c 100644 --- a/pkg/commands/commands.go +++ b/pkg/commands/commands.go @@ -73,7 +73,7 @@ fi if [ ${SIMULATIONS_FORMAT} = "bundle" ]; then gatling.sh -sf ${SIMULATIONS_DIR_PATH} -s ${SIMULATION_CLASS} -rsf ${RESOURCES_DIR_PATH} -rf ${RESULTS_DIR_PATH} %s %s elif [ ${SIMULATIONS_FORMAT} = "gradle" ]; then - gradle -Dgatling.core.directory.results=${RESULTS_DIR_PATH} gatlingRun-${SIMULATION_CLASS} + gradle -Dgatling.core.directory.results=${RESULTS_DIR_PATH} --simulation=${SIMULATION_CLASS} fi GATLING_EXIT_STATUS=$? diff --git a/pkg/commands/commands_test.go b/pkg/commands/commands_test.go index 84b9104..bad1128 100644 --- a/pkg/commands/commands_test.go +++ b/pkg/commands/commands_test.go @@ -91,7 +91,7 @@ fi if [ ${SIMULATIONS_FORMAT} = "bundle" ]; then gatling.sh -sf ${SIMULATIONS_DIR_PATH} -s ${SIMULATION_CLASS} -rsf ${RESOURCES_DIR_PATH} -rf ${RESULTS_DIR_PATH} -rm local elif [ ${SIMULATIONS_FORMAT} = "gradle" ]; then - gradle -Dgatling.core.directory.results=${RESULTS_DIR_PATH} gatlingRun-${SIMULATION_CLASS} + gradle -Dgatling.core.directory.results=${RESULTS_DIR_PATH} --simulation=${SIMULATION_CLASS} fi GATLING_EXIT_STATUS=$? @@ -144,7 +144,7 @@ fi if [ ${SIMULATIONS_FORMAT} = "bundle" ]; then gatling.sh -sf ${SIMULATIONS_DIR_PATH} -s ${SIMULATION_CLASS} -rsf ${RESOURCES_DIR_PATH} -rf ${RESULTS_DIR_PATH} -nr -rm local elif [ ${SIMULATIONS_FORMAT} = "gradle" ]; then - gradle -Dgatling.core.directory.results=${RESULTS_DIR_PATH} gatlingRun-${SIMULATION_CLASS} + gradle -Dgatling.core.directory.results=${RESULTS_DIR_PATH} --simulation=${SIMULATION_CLASS} fi GATLING_EXIT_STATUS=$?