Skip to content
| Marketplace
Sign in
Visual Studio Code>Testing>TrykeNew to Visual Studio Code? Get it now.
Tryke

Tryke

thejchap

|
2 installs
| (0) | Free
Tryke test runner integration for VS Code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Tryke for VS Code

Screenshot 2026-03-07 at 23 51 37

VS Code integration for Tryke — a fast Rust-powered test runner for Python.

Tests show up in the native VS Code Test Explorer. Run, debug, and watch tests with inline pass/fail gutter decorations and per-assertion diagnostics routed through Tryke's JSON event stream.

Requirements

  • Tryke installed and on PATH (or set tryke.command to its full path).
  • A workspace containing a pyproject.toml.

Install Tryke with your package manager of choice:

uv add --dev tryke
# or
pip install tryke

See the Tryke docs for writing tests.

Features

  • Test Explorer integration — discover, run, and debug Tryke tests from the VS Code sidebar.
  • @test.cases parametrized tests — each case (square[zero], square[one], …) appears as its own item with full fidelity.
  • Server mode — reuses a long-running tryke server process for near-instant reruns. The extension auto-starts and manages its lifecycle.
  • Direct mode — falls back to spawning tryke test per run when a server isn't available.
  • Watch mode session — streams results from tryke as files change.
  • Changed-files runs — optionally limit runs to tests affected by your git diff.
  • Dedicated output channels — Tryke for extension activity, Tryke Server for piped server stdout/stderr.

Commands

Command ID
Tryke: Start Server tryke.startServer
Tryke: Stop Server tryke.stopServer
Tryke: Restart Server tryke.restartServer

Settings

Setting Default Description
tryke.command tryke Path to the tryke executable.
tryke.python null Python interpreter for spawned workers, passed as --python (requires tryke ≥ 0.0.26). Supports VS Code variables: ${workspaceFolder}, ${workspaceFolder:NAME}, ${userHome}, ${env:VAR}. Example: ${workspaceFolder}/.venv/bin/python3 (Unix) or ${workspaceFolder}/.venv/Scripts/python.exe (Windows). When unset, tryke uses bare python/python3 from PATH, which usually fails unless your venv is active in the spawning environment. Alternatively set [tool.tryke] python in pyproject.toml.
tryke.mode auto Runner mode: direct, server, or auto.
tryke.server.host 127.0.0.1 Tryke server host.
tryke.server.port 2337 Tryke server port.
tryke.server.autoStart true Auto-start the server when using server mode.
tryke.server.autoStop true Stop the server on extension deactivation.
tryke.server.logLevel info Maps to TRYKE_LOG=<level> on the server child env. Surfaces both rust and python worker logs in the Tryke Server output panel on tryke versions that honor TRYKE_LOG (the release after 0.0.26); ignored on earlier versions.
tryke.workers null Number of worker threads (-j).
tryke.failFast false Stop after the first failure (--fail-fast).
tryke.maxfail null Stop after N failures (--maxfail).
tryke.dist null Work distribution (test, file, group).
tryke.markers null Tag/marker filter (-m).
tryke.changed off Run only --changed tests, --changed-first, or off.
tryke.baseBranch null Base branch for changed-file detection.
tryke.args [] Extra arguments forwarded to tryke.

Related

  • thejchap/tryke — the test runner itself.
  • thejchap/neotest-tryke — the Neovim integration.

License

MIT

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