st-tech / gatling-operator

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

Add unit test commands.go #17

Closed ksudate closed 2 years ago

ksudate commented 2 years ago

Add test code for commands.go.

You can verify that the test runs correctly with the following command. make test

Here are the results of a local run

❯ make test
~~~
?       github.com/st-tech/gatling-operator     [no test files]
?       github.com/st-tech/gatling-operator/api/v1alpha1        [no test files]
ok      github.com/st-tech/gatling-operator/controllers 8.274s  coverage: 30.5% of statements