CurTest: PyCharm-Style Test Runner for VS Code & Cursor
CurTest brings PyCharm-style inline Run/Debug buttons, context menus, and a Python test explorer to VS Code and Cursor. Effortlessly run or debug individual tests with a single click, just like in JetBrains IDEs!
Features
Inline Run/Debug Buttons: Instantly run or debug any Python test function with clickable icons above each test.
Status Bar Shortcuts: Quick access Run/Debug buttons for the active Python file.
Python Files Explorer: Sidebar view to browse and run/debug all Python files in your workspace.
Pytest Support: Uses pytest for running and debugging tests, with support for --pdb debugging.
Installation
From the Marketplace
Open VS Code or Cursor.
Go to the Extensions view (Ctrl+Shift+X or Cmd+Shift+X).
Search for CurTest and click Install.
From a VSIX File
Download the latest .vsix from the Releases page or your trusted source.
In VS Code/Cursor, open the command palette (Ctrl+Shift+P or Cmd+Shift+P).
Type Install from VSIX and select your downloaded file.
Usage
Inline Buttons:
Open a Python file with test functions (e.g., def test_example():).
Click the ▶️ (Run) or 🐞 (Debug) button above a test to execute it.
Status Bar:
Use the Run/Debug buttons at the bottom when a Python file is active.
Command Palette:
Press Ctrl+Shift+P/Cmd+Shift+P and search for "Run Python File" or "Debug Python File".