This extension helps you scaffold, run, and manage Locust load tests directly from VS Code.
It integrates with Python environments, provides templates, snippets, and an Explorer view for your scenarios.
✨ Features
Explorer tree view: browse locustfile.py files, user classes, and tasks.
One-click runs:
Run a locustfile in Web UI mode.
Run in headless mode.
Run specific tasks or tags.
Environment setup:
Detects existing Locust installation.
Prompts to create a local locust_env and install Locust (via uv or venv+pip).
Templates: create a ready-to-use locustfile.py from extension templates.
Snippets: insert @task, FastHttpUser, and tagged task boilerplates quickly.
Command Palette integration: run everything via F1 → Locust: ....
Playground app: optional Flask demo backend to practice against.
🚀 Quick Start Tutorial (Playground + Locust)
This is the fastest way to try the extension with a demo backend.
Create environment & install Flask
uv venv locust_env
uv pip install flask
Run the playground API
uv run python -m playground_app.locust_playground_app