Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>pytest Language ServerNew to Visual Studio Code? Get it now.
pytest Language Server

pytest Language Server

Thiago Bellini Ribeiro

|
2 installs
| (0) | Free
A blazingly fast Language Server Protocol implementation for pytest fixtures
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

pytest Language Server for VS Code

A blazingly fast Language Server Protocol implementation for pytest fixtures, written in Rust.

Features

  • Go to Definition: Jump to fixture definitions from usage
  • Find References: Find all usages of a fixture
  • Hover Documentation: View fixture signatures and docstrings
  • Diagnostics: Warnings for undeclared fixtures used in function bodies
  • Code Actions: Quick fixes to add missing fixture parameters
  • Fixture Priority: Correctly handles pytest's fixture shadowing rules

Configuration

Custom Executable Path

By default, the extension uses the bundled pytest-language-server binary. You can configure a custom path:

{
  "pytestLanguageServer.executable": "/path/to/pytest-language-server"
}

To use the system version from PATH:

{
  "pytestLanguageServer.executable": "pytest-language-server"
}

Debug Logging

Enable LSP communication tracing:

{
  "pytestLanguageServer.trace.server": "verbose"
}

Requirements

None! The extension includes pre-built binaries for:

  • macOS (Intel and Apple Silicon)
  • Linux (x86_64 and ARM64)
  • Windows (x86_64)

Alternatively, you can install pytest-language-server from PyPI:

pip install pytest-language-server

Usage

The language server automatically activates for Python files in your workspace. No additional configuration is needed.

Issues

Report issues at: https://github.com/bellini666/pytest-language-server/issues

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft