vscode-xunit-viewer packages the xunit-viewer npm library as a VS Code extension so ROS 2 developers can browse colcon test results without leaving the editor.
The extension is built and packaged with Bun. Use bun install, bun run build, bun run test, and bun run package for local development.
- Generates a searchable HTML report from the workspace
build/directory. - Opens the report in a VS Code webview with scripts and find enabled.
- Reuses the same ignore patterns as the existing Dr.QP CLI workflow for
Test.xml,coverage.xml, andpackage.xml. - Refreshes the active report from the command palette after new test runs.
XUnit: Open XUnit Test ResultsXUnit: Refresh XUnit Test Results
vscode-xunit-viewer.resultsPath: Folder that contains XUnit XML files. Defaults tobuild.vscode-xunit-viewer.outputPath: Generated HTML path. Defaults tobuild/xunit-index.html.vscode-xunit-viewer.title: Optional custom report title.vscode-xunit-viewer.ignorePatterns: Filename patterns ignored while scanning the results folder.
- Run tests so XML results exist under
build/. - Open the command palette in VS Code.
- Run
XUnit: Open XUnit Test Results. - Re-run the command or use
XUnit: Refresh XUnit Test Resultsafter another test pass.
Install bun
curl -fsSL https://bun.com/install | bashIf you use Dev Containers, reopen the folder in the included container. It installs Bun and the system libraries commonly needed for VS Code extension authoring and extension-host test runs.
bun installinstalls dependencies and generates the Bun lockfile.bun run buildbundles the extension entrypoint intodist/extension.js.bun run testruns the Jest suite against the source module.bun run packagecreates a VSIX usingbunx @vscode/vsce.