VS Code extension for speq YAML-based tests.
Scope
Open-source MVP focuses on:
- test tree explorer;
- diagnostics powered by
speq validate --format json; - run actions that call
speq-cli; - quick manifest/environment preview.
Design principle
Extension is an interface layer and must not contain a separate runner implementation.
Structure
src/
extension.ts
tree/
preview/
diagnostics/
docs/
Requirements
speqCLI installed and available inPATH.- Workspace follows
in-repo(.speq/) ortest-repolayout.
Implemented MVP features
- Suites explorer for YAML tests in
suites/. - Diagnostics from
speq validate --speq-root <root> --format json. - Run actions via CLI:
- run suite (
speq run --suite ...) - run test (
speq run --test ...)
- run suite (
- Quick preview for:
manifest.yamlenvironments/*.yaml
Commands
speq: Refresh Suitesspeq: Validate Workspacespeq: Run Suitespeq: Run Testspeq: Preview Manifestspeq: Preview Environmentspeq: Select Active Rootspeq: Allure Servespeq: Open Test Flowspeq: Generate Reportspeq: Generate Summary Reportspeq: Report Allspeq: Open Summary Reportspeq: Open Allure Directory
CLI calls executed by extension
- Validate workspace:
speq validate --speq-root <root> --format json - Run suite:
speq run --speq-root <root> --suite <suitePath> - Run test:
speq run --speq-root <root> --test <testPath>
Local cargo mode (for speq-cli development)
You can switch command execution from installed speq binary to local cargo run.
Example workspace settings:
{
"speq.cli.mode": "cargo",
"speq.cli.cargoProjectPath": "../speq-cli",
"speq.cli.cargoRunArgs": [],
"speq.cli.binaryPath": "speq"
}
In this mode extension will run commands like:
cargo run -- validate --speq-root <root> --format jsoncargo run -- run --speq-root <root> --test <testPath>cargo run -- run --speq-root <root> --suite <suitePath>
Studio-oriented UX (Phase B baseline)
Studio Homeweb view (React) is the primary SPEQ interface in the sidebar.- Home provides quick actions for run/validate/flow/results.
- Active environment can be selected from Home and reused in run commands.
- Home includes a
Runnerblock that assembles and executesspeq runoptions (target,env,tags,report). - YAML CodeLens:
Run Test/Run Suitefor suite files;Validate Workspacefrom current file.
Test Flow visualization (Phase C baseline)
- Open a test flow diagram from:
speq: Open Test Flowcommand;- CodeLens in test YAML;
- context action in
SuitesandStudio Map.
- Diagram includes:
- execution lanes in Allure-like shape:
Setup,Test Body,Teardown; - suite hooks are merged into setup/teardown flow;
- test metadata header (
id,description,tags); - expanded
use.actionanduse.refsteps; - schema links from
assert.type: schema; - unresolved reference warnings (
imports/action/ref/schema) with direct links.
- execution lanes in Allure-like shape:
Reports UX (Phase D baseline)
- Primary flow is
Run Test/Run Suite-> reports are produced duringspeq run. - Home shows latest summary status and topology metrics.
- Report commands from Home:
- open
reports/results/summary.json; - open allure directory in OS explorer;
- run
allure serve.
- open
- Advanced commands (
Generate Report,Report All) remain available from Command Palette for manual recovery flows. - Home refreshes after run/report commands to keep report status up to date.
Local development
- Install dependencies:
npm install - Compile:
npm run compile
Release
- Release instructions (manual + GitHub automation):
docs/EXTENSION_RELEASE_GUIDE.md
Status
OSS MVP extension is implemented as interface-only layer over speq-cli.