inline test execution with visual indicators
Integrates with VS Code's Testing API to display clickable execution triangles (green for passed, grey for not-run) adjacent to test definitions in the editor. Clicking triggers test execution via the Playwright test runner, with results reflected back to the sidebar and inline decorators. Uses VS Code's native test discovery mechanism to parse test file structure and map test names to line numbers.
Unique: Uses VS Code's native Testing API sidebar and inline decorators (not custom UI) to provide first-class test execution without leaving the editor, with real-time status synchronization between sidebar and inline indicators.
vs alternatives: Tighter IDE integration than standalone test runners or npm scripts, eliminating context switching between editor and terminal for individual test runs.
watch mode with auto-rerun on file save
Monitors the active test file for changes and automatically re-executes tests when the file is saved. Triggered via an 'eye' icon toggle in the sidebar. Leverages VS Code's file watcher API to detect save events and pipes them to the Playwright test runner with watch mode enabled. Results update inline and in the sidebar without user intervention.
Unique: Integrates VS Code's file watcher with Playwright's native watch mode to provide seamless auto-rerun without requiring terminal or separate process management.
vs alternatives: Simpler than npm scripts with nodemon or manual test re-runs; watch state persists in the IDE sidebar rather than requiring separate terminal window.
test result aggregation and sidebar display
Aggregates test execution results (pass/fail/skip) from all executed tests and displays them hierarchically in the VS Code Testing sidebar. Shows test names, execution status, duration, and error messages. Updates in real-time as tests complete. Uses VS Code's Testing API to populate the sidebar with test metadata and results.
Unique: Leverages VS Code's native Testing API sidebar to provide first-class test result display without custom UI, ensuring consistency with other test runners.
vs alternatives: More integrated than terminal output or separate test report windows; results visible alongside code without context switching.
right-click context menu debugging entry point
Provides a right-click context menu option on test definitions to launch the debugger. Clicking 'Debug' starts test execution with the VS Code debugger attached, allowing breakpoints and step-through debugging. Uses VS Code's debugger protocol to attach to the Playwright test runner process.
Unique: Provides context-menu entry point for debugging, reducing friction compared to command palette or keyboard shortcuts.
vs alternatives: More discoverable than keyboard shortcuts; familiar mouse-based interaction for developers unfamiliar with VS Code keybindings.
github actions ci/cd integration setup wizard
Provides an optional setup wizard during extension installation that configures GitHub Actions workflows for running Playwright tests in CI/CD. Generates workflow YAML files and configures environment variables. Integrates with the extension's initialization flow to offer CI setup as an optional step.
Unique: Integrates GitHub Actions setup into the extension initialization flow, reducing friction for teams adopting CI/CD.
vs alternatives: Faster than manual workflow writing; provides Playwright-specific best practices out-of-the-box.
multi-browser test execution across configured projects
Executes the same test across multiple browser configurations (Chromium, Firefox, WebKit) by reading the playwright.config.ts/js and running tests for each defined project. Results are aggregated and displayed in the sidebar, showing pass/fail status per browser. Uses Playwright's native project configuration system to determine which browsers to target.
Unique: Reads Playwright's native project configuration to automatically discover and execute tests across all configured browsers without requiring extension-specific setup.
vs alternatives: Eliminates manual browser switching or separate test runs; leverages existing Playwright config rather than requiring custom extension settings.
headless/headed mode toggle for test execution
Provides a 'Show browsers' checkbox in the sidebar that controls whether tests execute in headless mode (no visible browser window) or headed mode (visible browser window). Toggles the --headed flag passed to the Playwright test runner. Allows developers to visually observe test execution in real-time without modifying code or config.
Unique: Exposes Playwright's --headed flag as a simple checkbox toggle in the VS Code sidebar, eliminating the need to modify config or use command-line flags.
vs alternatives: Faster context switching than editing playwright.config.ts or running tests from terminal with manual flags.
interactive breakpoint debugging with element highlighting
Integrates with VS Code's native debugger to set breakpoints in test code. When a breakpoint is hit, the extension highlights the corresponding DOM element(s) in the live browser window, and allows inspection of locator values via hover tooltips. Uses VS Code's debugger protocol to pause execution and sync browser state with editor state.
Unique: Synchronizes VS Code's debugger with live browser DOM state to highlight elements in real-time, providing visual feedback that standard debuggers cannot offer.
vs alternatives: More intuitive than console.log debugging or manual element inspection; visual highlighting reduces cognitive load compared to reading locator selectors.
+5 more capabilities