tag1consulting / goose

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

Impl `Default` for `GooseConfiguration` #518

Closed yds12 closed 2 years ago

yds12 commented 2 years 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.