Install it from the VS Code Marketplace
This is a VS Code extension that adds a status bar item for test statistics. It works with the Test Explorer extension and any of its adapters.
You'll need VS Code and Node (any version >= 12 should probably work).
- Clone the repository:
git clone https://github.com/connorshea/vscode-test-explorer-status-bar
- Run
npm install
to install dependencies. - Open the directory in VS Code.
- Run
npm run watch
or start thewatch
Task in VS Code to get the TypeScript compiler running. - Go to the Debug section in the sidebar and run "Status Bar extension". This will start a separate VS Code instance for testing the extension in. It gets updated code whenever "Reload Window" is run in the Command Palette.
- You'll need a test adapter (e.g. the Ruby adapter) and a test suite to use the status bar extension with.
This extension is based on the example test controller, it may be useful to check that repository for more information.
See the VS Code extension docs for more info.
Before publishing, make sure to update the CHANGELOG.md
file. You also need to be logged in to vsce
.
vsce publish VERSION
, e.g. vsce publish 1.0.0
will automatically handle creating the git commit and git tag, updating the package.json
, and publishing the new version to the Visual Studio Marketplace. You'll need to manually run git push
and git push --tags
after publishing.
Alternatively, you can bump the extension version with vsce publish major
, vsce publish minor
, or vsce publish patch
.