SpecwrightBDD authoring, test execution, and traceability for Write Gherkin scenarios, keep them connected to their step definitions, and run or debug the exact test you are editing. Specwright brings authoring and Playwright results together in VS Code.
What you can doWrite better feature filesUse built-in Gherkin highlighting, snippets, document outline, tag suggestions, and table formatting. Specwright can identify missing or ambiguous steps, validate Scenario Outline tables, and help create a matching step definition. Keep steps connectedGo from a Gherkin step to its TypeScript or JavaScript definition, inspect the matching pattern on hover, find every scenario that uses a definition, and spot unused definitions. Suggestions come from the step definitions in your workspace. Run and debug the right scenarioDiscover features in the Testing view and run a feature, scenario, Scenario Outline, or individual Examples row. Use CodeLens or the Testing view to target an individual scenario or row; editor and Explorer context menus provide file-level actions. Results map back to the feature file as each scenario finishes, so a long run shows useful progress immediately. Set breakpoints in
Manage a growing step libraryThe Steps panel groups definitions by keyword, highlights unmatched and unused steps, and provides one-click generation. It can also export shareable Markdown catalogs of steps or scenarios.
Connect scenarios to Xray CloudExperimental. The Traceability panel maps tagged scenarios to Xray Cloud tests, shows coverage in VS Code, and supports local-run publishing workflows. It can be evaluated with an existing Jira/Xray project, including a trial tenant when the account has the required permissions. No standalone sample project is required. The Xray guide clearly identifies actions that only change your workspace, actions that read remote data, and actions that can create, update, attach, or publish remote Jira/Xray records.
Quick start
Specwright uses your existing Common tasks
Highlights
Compatibility and prerequisites
The compatibility record names the exact VS Code, Playwright, and legacy Specwright can coexist with Cucumber (Gherkin) Full Support. Overlapping authoring features default to an automatic compatibility mode to avoid duplicate suggestions and diagnostics. You can change that behavior in Settings. Specwright writes diagnostics to a VS Code log output channel. Use Developer: Set Log Level to control its detail and Specwright: Show Test Output to open it. For a support report, run Specwright: Open Support Snapshot. It previews a redacted JSON snapshot first and copies it only when you choose Copy Snapshot. Documentation
Install from the command line
SupportIf Specwright saves you time, consider buying me a coffee. AcknowledgmentsSpecwright stands on the work of projects and communities that make BDD development in VS Code possible. Test runnerplaywright-bdd provides the Gherkin runner on top of Playwright that Specwright targets. Original extension foundationBehave Test Runner is the upstream VS Code extension that Specwright was forked from. Its Test Explorer wiring, organization strategies, and CodeLens scaffolding provided the starting point. Gherkin ecosystemCucumber (Gherkin) Full Support is an independent VS Code extension for Gherkin authoring. Specwright is designed to coexist with it; see the compatibility settings. Gherkin and the VS Code Extension API provide the language and platform that make the extension possible. License |




