-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow tasks to be declared directly under Locust classes #1304
Commits on Mar 31, 2020
-
Change how tasks and TaskSets are declared on Locust classes.
* Let users specify tasks directly under a Locust class, just as one would do it on a TaskSet class. These tasks will get the Locust instance as argument when executed. * Removed Locust.task_set from the public API, and instead let users use either the tasks attribute or the @task decorator. * Introduce a Locust.abstract boolean attribute. If it's set to True the Locust class is meant to be used as a base class, and users of that type can not be spawned directly from it.
Configuration menu - View commit details
-
Copy full SHA for 02ce166 - Browse repository at this point
Copy the full SHA 02ce166View commit details -
Configuration menu - View commit details
-
Copy full SHA for ca349d8 - Browse repository at this point
Copy the full SHA ca349d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for b68ba43 - Browse repository at this point
Copy the full SHA b68ba43View commit details
Commits on Apr 1, 2020
-
Configuration menu - View commit details
-
Copy full SHA for af1e5e8 - Browse repository at this point
Copy the full SHA af1e5e8View commit details
Commits on Apr 2, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 60e1afd - Browse repository at this point
Copy the full SHA 60e1afdView commit details -
Configuration menu - View commit details
-
Copy full SHA for a3f7ebd - Browse repository at this point
Copy the full SHA a3f7ebdView commit details
Commits on Apr 3, 2020
-
Configuration menu - View commit details
-
Copy full SHA for bbd73cd - Browse repository at this point
Copy the full SHA bbd73cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for cf2ecb7 - Browse repository at this point
Copy the full SHA cf2ecb7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6765d27 - Browse repository at this point
Copy the full SHA 6765d27View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5aacb98 - Browse repository at this point
Copy the full SHA 5aacb98View commit details -
Rewrote all documentation to the new API that allow tasks directly un…
…der Locust classes. Some general documentation improvements here and there.
Configuration menu - View commit details
-
Copy full SHA for a69a451 - Browse repository at this point
Copy the full SHA a69a451View commit details -
Remove Locust._task_set since there shouldn't be any problem with har…
…d coding DefaultTaskSet as far as I can tell
Configuration menu - View commit details
-
Copy full SHA for f1f94fb - Browse repository at this point
Copy the full SHA f1f94fbView commit details -
Emit DepricationWarning if a Locust class has a task_set attribute of…
… type TaskSet (that hasn't been decorated by @task)
Configuration menu - View commit details
-
Copy full SHA for 014d9a5 - Browse repository at this point
Copy the full SHA 014d9a5View commit details