You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There should be a locustfile.py which would import classes from locustfiles directory
Actual behavior
There's no locustfile.py in the docs
Steps to reproduce
(;) ; ls -l
total 0
drwxr-xr-x 3 neo wheel 96 Dec 13 17:22 common
drwxr-xr-x 3 neo wheel 96 Dec 13 17:22 locustfiles
drwxr-xr-x 7 neo wheel 224 Dec 13 17:21 venv
(;) ; tree -I venv
.
├── common
│ └── __init__.py
└── locustfiles
└── locustfile.py
2 directories, 2 files
(;) ; locust
Could not find any locustfile! Ensure file ends in '.py' and see --help for available options.
(;) ;
Environment
OS: MacOS
Python version: Python 3.10.0
Locust version: locust 2.5.1
Locust command line that you ran: locust
Locust file contents (anonymized if necessary): no locustfile present, only locustfiles directory present
The text was updated successfully, but these errors were encountered:
Perhaps, then, adding something like locust -f locustfiles/api.py would help understand that.
I assumed that locustfiles is a special directory name and will consider all the files inside as locustfiles automatically.
Describe the bug
In the following section, a
locustfile.py
is missinghttps://github.com/locustio/locust/blame/abca230842661606e00433a0df91927ebf23ec9c/docs/writing-a-locustfile.rst#L625-L636
Expected behavior
There should be a
locustfile.py
which would import classes fromlocustfiles
directoryActual behavior
There's no
locustfile.py
in the docsSteps to reproduce
Environment
locustfiles
directory presentThe text was updated successfully, but these errors were encountered: