Skip to content
PluginStats

Pytest Runner for Visual Studio Code installs statistics

By Ernesto Arbitrio · VS Code Marketplace · Testing

Run test (locally ,venv and in docker container) in your 🐍 python codebase using pytest.

View on VS Code Marketplace Fresh · Dec 6, 2026

Pytest Runner for Visual Studio Code has 134,220 recorded installs on VS Code Marketplace, an increase of 0.9% over the past 30 days, ranking #2013 of 2,515 tracked listings.

Installs
134,220
Official API · Dec 6, 2026
7-day growth
+0.2%
+285 installs
30-day growth
+0.9%
+1.2K installs
90-day growth
—
Insufficient history
Rank
#2013
Among tracked VS Code Marketplace listings

Rating: 5.00 / 5 from 1 ratings

About Pytest Runner for Visual Studio Code

PyTest Runner for VsCode

logo

ci

The Pytest Runner Visual Studio Code extension makes running Python tests effortless using pytest. Whether you're using a local environment or a Docker container, this tool has you covered. It’s designed for developers who need a quick, streamlined way to execute tests directly from their codebase.

NOTE: Pytest Runner is in its early stages 🐣. Contributions are welcome! Found an issue? Open one. Want to enhance it? Submit a PR 😃.

Why Pytest Runner? 🌟

Modern testing environments can be complex. For instance, in my job, most tests run in a Docker-based architecture, requiring remote interpreters and long pytest identifiers like test_mod.py::test_func. This process was tedious and slow, so I created Pytest Runner to eliminate friction and make testing as intuitive as possible.

Inspired by tools like https://vimawesome.com/plugin/pytest-vim, this extension brings speed and ease to testing Python codebases, no matter the setup.

Look at the usage section for more details.

Features 🔥

  • Run single tests or test modules using local or venv pytest command
  • Run single tests or test modules using pytest through a docker container
  • Optional configuration inspection via setup.cfg or pyproject.toml files.
Configuration file check

If pytest_runner.check_config is enabled, before the test execution, pytest-runner checks the configuration file of your project, for example for a toml file like this:

[tool.pytest.ini_options]
python_classes = ["Test", "Describe"]
python_functions = ["test_", "it_", "and_", "but_", "they_"]
python_files = ["test_*.py",]
testpaths = ["tests",]

or a setup.cfg:

[tool:pytest]
python_classes = Test Describe
python_files = test_*.py
python_functions = test_ it_ they_ but_ and_it_
testpaths =
    tests

If your test function doesn't start with any of the names above, pytest-runner won't start and it shows you an error ❌ message.

error

Requirements 📦

  • Pytest is the only requirement.
  • Currently tested on macOS and Linux.

Extension Settings ⚙️

This extension offers several customizable settings:

  • pytest_runner.pytest_exec: Specifies the local pytest executable. Defaults to your active virtual environment or /usr/bin/pytest.
  • pytest_runner.pytest_exec_docker: Command to run pytest in a Docker container (e.g., docker-compose run --rm test-container pytest).
  • pytest_runner.check_config: Enables/disables configuration checks (default: false).
  • pytest_runner.pytest_options: Additional pytest options (e.g., -sv, -x).

These options can be set in each settings.json within .vscode in the project root directory or in the settings.json of VSCode (not recommended).

Usage 📖

Available Commands:

  • Run Test: Run a single test locally.
  • Run Test Docker: Run a single test in Docker.
  • Run Test Module: Run all tests in the current file locally.
  • Run Test Module Docker: Run all tests in the current file via Docker.

You can run them using the VSCode command palette (⇧⌘P or ctr⇧P)

cmd-palette

or through the 2 custom buttons on the status bar.

cmd-palette

Running Tests

To run a single test you have 2 options:

  1. Simply place your cursor anywhere inside the target test function or class. The extension automatically detects the context and executes the corresponding test without requiring precise cursor placement on the definition line.
  2. Select the test name or portion of it and run the desired command.

According to the command the test will be executed in the local environment Run Test or in the docker container Run Test Docker

run-test-demo

If you wanna run all the tests in your current python module you can just use Run Test Module or Run Test Module Docker independently of the cursor location.

💡 Pro Tip: Create keyboard shortcuts for frequently used commands to boost productivity.

Keybindings and shortcuts ⌨️

Define custom shortcuts for faster testing:

The 4 commands in the section above are actually an alias for these:

  • pytest-runner.run-test
  • pytest-runner.run-test-docker
  • pytest-runner.run-module-test
  • pytest-runner.run-module-test-docker

To increase the speed I would suggest new entries in the keybindigs in order to map the 2 commands to a keyboard key combination:

  1. Open keybinding.json -> command palette (⇧⌘P or ctr⇧P) Open Keyboard Shortcut
  2. Add your key combination:
    {
      "key": "ctrl+alt+1",
      "command": "pytest-runner.run-test"
    },
    ...
    {
      "key": "ctrl+alt+2",
      "command": "pytest-runner.run-module-test"
    }

Now you can execute single tests with Ctrl+Alt+1 and module tests with Ctrl+Alt+2 (or your chosen keys).

Known Issues 🧐

Only when pytest_runner.pytest_exec is set to pytest without specifying the complete path of the exectuable, the first time the Run Test will fail due to async problem between terminal venv activation and the send command time.

The second run should work properly.


Do you like pytest-runner?

Buy Me A Coffee


Release Notes 📋

0.0.13

  • Bug fix parsing pyproject.toml, "=", [ \t] or [A-Za-z0-9_-] but "." found

0.0.12…

Description from the VS Code Marketplace listing.

  • docker
  • pytest
  • python
  • testing

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

Pytest Runner for Visual Studio Code installs on VS Code Marketplace, last 90 days: 134,220 installs as of Dec 6, 2026.Pytest Runner for Visual Studio CodeInstalls on VS Code Marketplace · Last 90 days134,220installs132K132.5K133K133.5K134K134.5KSep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6installsobservedarchived (Internet Archive)no observationsOct 16, 2026 – Dec 6, 2026 · 50 observations · Updated Dec…pluginstats.com
Pytest Runner for Visual Studio Code installs on VS Code Marketplace, last 90 days: 134,220 installs as of Dec 6, 2026.

7/30/90-day growth

Pytest Runner for Visual Studio Code installs growth on VS Code Marketplace: +0.2% over 7 days, +0.9% over 30 days, 90-day growth unavailable.Pytest Runner for Visual Studio CodeInstalls growth on VS Code Marketplace134,220installs now7-day growth+285 installs+0.2%30-day growth+1,249 installs+0.9%90-day growthinsufficient historyInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Dec 6, 2026pluginstats.com
Pytest Runner for Visual Studio Code installs growth on VS Code Marketplace: +0.2% over 7 days, +0.9% over 30 days, 90-day growth unavailable.

Ranking history

Pytest Runner for Visual Studio Code VS Code Marketplace ranking history: currently #2013 (by installs).Pytest Runner for Visual Studio CodeVS Code Marketplace ranking · by installs · Last 90 days#2013current rank#2008#2010#2012#2014#2016#2018Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 16, 2026 – Dec 6, 2026 · 50 observations · Updated Dec 6, 2026pluginstats.com
Pytest Runner for Visual Studio Code VS Code Marketplace ranking history: currently #2013 (by installs).

Ratings over time

Pytest Runner for Visual Studio Code ratings on VS Code Marketplace, last 90 days: 1 ratings as of Dec 6, 2026.Pytest Runner for Visual Studio CodeRatings on VS Code Marketplace · Last 90 days1ratings0.9111.11.1Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6ratingsobservedarchived (Internet Archive)no observationsOct 16, 2026 – Dec 6, 2026 · 50 observations · Updated Dec…pluginstats.com
Pytest Runner for Visual Studio Code ratings on VS Code Marketplace, last 90 days: 1 ratings as of Dec 6, 2026.

Listing placement

All VS Code Marketplace2,515 listings · 126 pages · 1,258 shown · page 101, #17 (overall #2,017)
All VS Code Marketplace: every listing in installs order

Listing placement

Testing76 listings · 4 pages · page 4, #6 (overall #66)
Testing: every listing in installs order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Installs on a linear scale. Placement is projected from installs, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (50)
Recent installs observations for Pytest Runner for Visual Studio Code
Date (UTC)InstallsChange vs. previous
134,220+18
134,202+55
134,147+46
134,101+67
134,034+56
133,978+23
133,955+20
133,935+9
133,926+39
133,887+31
133,856+49
133,807+82
133,725+30
133,695—

Similar VS Code Marketplace Testing plugins

All 20 Pytest Runner for Visual Studio Code alternatives

Data source

Install counts, average rating, and rating counts come from the public Visual Studio Marketplace gallery API. Installs are cumulative and exclude updates.

Listing: https://marketplace.visualstudio.com/items?itemName=pamaron.pytest-runner. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.