LogStudio LogSpec Test Runner (VS Code Extension)
Author, autocomplete, and execute LogSpec log pattern test cases against Chrome or Microsoft Edge via WebMCP (Web Model Context Protocol).
Features
- Rich Syntax Highlighting: Native TextMate grammar for
.logspec and .logtest files.
- Intelligent Autocompletion: Context-aware completions for
sequenceOf, strictSequenceOf, atMin, atMax, not, withinLines, withLevel, and builder chaining.
- Code Snippets: Quick-insert templates for full test cases, sequences, and presets (Android boot, BLE pairing, crash prevention).
- Inline CodeLens Run Action: Click
▶ Run Test in Browser (WebMCP) directly above any test block.
- Editor Toolbar Run Button: One-click run icon in the top-right toolbar of the editor.
- Visual Results Panel: Side-by-side Webview panel displaying pass/fail badges, durations, step timelines, and matched log lines.
- WebMCP Browser Bridge: Connects seamlessly to Chrome or Edge via remote debugging (
--remote-debugging-port=9222).
Getting Started
- Open LogStudio in Chrome or Microsoft Edge launched with remote debugging enabled:
google-chrome --remote-debugging-port=9222 https://log.tejpratapsingh.com
(Or click "Launch Chrome with WebMCP Debugging" in the VS Code Command Palette).
- Open any
.logspec file (e.g. examples/sample_boot.logspec).
- Click the
▶ Run Test in Browser (WebMCP) CodeLens or the Play button in the editor toolbar.
- View real-time test verification results in the interactive panel!
Extension Settings
logstudio.webmcp.browserPort: Remote debugging port (default: 9222).
logstudio.webmcp.browserType: Default browser (chrome or edge).
logstudio.webmcp.appUrl: Target URL for LogStudio (default: https://log.tejpratapsingh.com).
| |