VS Code Extension
The testdoc VS Code Extension brings test documentation generation directly into VS Code — no terminal required.
Right-click any folder in the Explorer and generate HTML, JSON or MkDocs documentation in seconds.
Requirements
- VS Code
^1.85.0 - Python extension (
ms-python.python) installed and active robotframework-testdocinstalled in the active Python environment:
pip install robotframework-testdoc
Installation
The extension is not published on the VS Code Marketplace. Download the latest .vsix from the GitHub Releases page (look for releases tagged vsce/v*).
Option A – VS Code UI:
- Open the Extensions view (
Ctrl+Shift+X/Cmd+Shift+X) - Click the
...menu → Install from VSIX... - Select the downloaded
.vsixfile
Option B – Terminal:
code --install-extension testdoc-vscode-<version>.vsix
Usage
Right-click any folder in the Explorer panel that contains your .robot files:
| Command | Output |
|---|---|
| testdoc: Generate HTML Documentation | Self-contained .html file |
| testdoc: Generate JSON Documentation | Machine-readable .json suite tree |
| testdoc: Generate MkDocs Output | Full MkDocs project in a selected directory |
HTML / JSON
- Right-click a folder with
.robotfiles - Select testdoc: Generate HTML Documentation or testdoc: Generate JSON Documentation
- Choose a save location in the dialog that opens
- A terminal executes
testdocand writes the file
MkDocs
- Right-click a folder with
.robotfiles - Select testdoc: Generate MkDocs Output
- Pick an output directory in the folder picker
- A terminal executes
testdoc --mkdocsand writes the MkDocs project
Python Interpreter
The extension automatically uses the interpreter configured for the workspace via the Python extension.
Make sure robotframework-testdoc is installed in that interpreter.
Troubleshooting
No module named testdoc
→ Open Ctrl+Shift+P → Python: Select Interpreter and select the environment where robotframework-testdoc is installed.
Context menu commands do not appear
→ The right-click must be on a folder, not a file.