tag1consulting / goose

Load testing framework, inspired by Locust
https://tag1.com/goose
Apache License 2.0
759 stars 69 forks source link

Impl `Default` for `GooseConfiguration` #518

Closed yds12 closed 1 year ago

yds12 commented 1 year ago

Hello,

I'm trying to use Goose in a binary that itself has some command line options. The issue I ran into is that when I do GooseAttack::initialize it will read the command line arguments of my binary and they are not recognized, causing the program to exit. I can use GooseAttack::initialize_with_config instead, so that Goose doesn't read the command line args. The problem is that the GooseConfiguration object is very large. It would be nice if it had a Default impl so that I can send that to GooseAttack::initialize_with_config.