locustio / locust

Write scalable load tests in plain Python 🚗💨
https://locust.cloud
MIT License
25.11k stars 3k forks source link

Overwrite weight by config user before environment weight validation #2971

Open tdadela opened 2 weeks ago

tdadela commented 2 weeks ago

Current order:

  1. Removing user classes with weight zero. (_remove_user_classes_with_weight_zero()).
  2. Overwriting weights of user classes by CL config.

New order:

  1. Overwriting weights of user classes by CL config.
  2. Removing user classes with weight zero. (_remove_user_classes_with_weight_zero()).

Related to: #2852.

cyberw commented 1 day ago

Looks ok. Can you add some sort of test case that shows why this was needed/what benefit it provides?