Skip to content

Documentation around distributed locustfile (-f -) is lacking #3203

@gregersn

Description

@gregersn

Prerequisites

Description

The documentation says

The -f - argument tells Locust to get the locustfile from master instead of from its local filesystem. This feature was introduced in Locust 2.23.0.

But it does not mention that this will not work if you follow the suggested ways of structuring test code into multiple files.

ModuleNotFoundError: No module named 'common'

Documentation should either be updated to mention this, or there should be ways of distributing all required code to run tests.

Command line

locust -f - --worker --master-host --process -1

Locustfile contents

N/A

Python version

N/A

Locust version

N/A

Operating system

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugstaleIssue had no activity. Might still be worth fixing, but dont expect someone else to fix it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions