st-tech / gatling-operator

Automating distributed Gatling load testing using Kubernetes operator
MIT License
68 stars 21 forks source link

[Bug]: Unable to run gatling tests using gradlePlugin within pod #121

Open andrzejmikolajczakds opened 2 weeks ago

andrzejmikolajczakds commented 2 weeks ago

Pre-requisites

What happened/what you expected to happen?

Created pod can not run task gatlingRun-MY_CLASS_NAME. It is because of wrong placeholder here. According to documentation it should be: gradle gatlingRun --simulation MY_CLASS_NAME

Relevant log output

No response

kane8n commented 2 weeks ago

@andrzejmikolajczakds Thank you for creating the issue! This is similar to the following PullRequest.

The current implementation works with gatling 3.10, but not with 3.11 as you mentioned. The standard ---simulation CLASS_NAME option is enforced in gatling 3.11.

Until 3.10, it was gatlingRun-MY_CLASS_NAME.

There are plans to make gatling-operator compatible with gatling 3.11, but the timing is not yet determined.

andrzejmikolajczakds commented 2 weeks ago

So maybe we could update doc: https://github.com/st-tech/gatling-operator/blob/main/docs/user-guide.md#create-custom-gatling-image-with-gradle-gatling-plugin . There is a link to sample repo, which uses gatling 3.11

kane8n commented 2 weeks ago

@andrzejmikolajczakds Please submit a PullRequest for document updates and we will review it!