Skip to content
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

Merged
merged 13 commits into from
Apr 3, 2020

Commits on Mar 31, 2020

  1. 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.
    heyman committed Mar 31, 2020
    Configuration menu
    Copy the full SHA
    02ce166 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ca349d8 View commit details
    Browse the repository at this point in the history
  3. Fix test

    heyman committed Mar 31, 2020
    Configuration menu
    Copy the full SHA
    b68ba43 View commit details
    Browse the repository at this point in the history

Commits on Apr 1, 2020

  1. Configuration menu
    Copy the full SHA
    af1e5e8 View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2020

  1. Configuration menu
    Copy the full SHA
    60e1afd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a3f7ebd View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2020

  1. Configuration menu
    Copy the full SHA
    bbd73cd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cf2ecb7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6765d27 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5aacb98 View commit details
    Browse the repository at this point in the history
  5. Rewrote all documentation to the new API that allow tasks directly un…

    …der Locust classes.
    
    Some general documentation improvements here and there.
    heyman committed Apr 3, 2020
    Configuration menu
    Copy the full SHA
    a69a451 View commit details
    Browse the repository at this point in the history
  6. Remove Locust._task_set since there shouldn't be any problem with har…

    …d coding DefaultTaskSet as far as I can tell
    heyman committed Apr 3, 2020
    Configuration menu
    Copy the full SHA
    f1f94fb View commit details
    Browse the repository at this point in the history
  7. Emit DepricationWarning if a Locust class has a task_set attribute of…

    … type TaskSet (that hasn't been decorated by @task)
    heyman committed Apr 3, 2020
    Configuration menu
    Copy the full SHA
    014d9a5 View commit details
    Browse the repository at this point in the history