Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Pytest IntelliSenseNew to Visual Studio Code? Get it now.
Pytest IntelliSense

Pytest IntelliSense

datoux

|
17,517 installs
| (0) | Free
Autocompletion and Go To Definition support for Pytest fixtures
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VS Code Pytest IntelliSense

The vscode-pytest-intellisence extension brings additional pytest integration to VSCode. Using the output from pytest --fixtures, it teaches VS Code where the fixtures are defined, and what are the available fixtures.

This work is inspired and derived from reverbc/vscode-pytest

Configuration

The addon requires you to set your pytest command (behind the scenes, the addon runs pytest /path/to/test_file --fixtures to get a list of fixtures)

If you are using a virtual environment, when inside of it, you can find the fully fledged path to pytest by running which pytest.

$ which pytest
/Users/datoux/.virtualenvs/demo-mLN-1lcH/bin/pytest

Then set pytest.command appropriately in your workspace settings.

{
  "pytest.command": "/Users/datoux/.virtualenvs/demo-mLN-1lcH/bin/pytest"
}

The additional parameter pytest.pythonPath adds additional python paths into PYTHONPATH for pytest to find all necessary python packages.

Release Notes

See CHANGELOG

License

vscode-pytest-intellisence is available under MIT license.

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