GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - hbenl/vscode-example-test-controller: An example Test Controller for Visual Studio Code

BranchesTags
Open more actions menu

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
.vscode
.vscode
 
 
img
img
 
 
src
src
 
 
.gitignore
.gitignore
 
 
.vscodeignore
.vscodeignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 

Repository files navigation

Implementing a Test Controller for Visual Studio Code

This repository contains an example for implementing a TestController extension that works with the Test Explorer extension.

Setup

  • install the Test Explorer extension
  • fork and clone this repository and open it in VS Code
  • run npm install
  • run npm run watch or start the watch Task in VS Code
  • start the debugger

You should now see a second VS Code window, the Extension Development Host, in which the ExampleController is active: When you open a folder in this window, a Status Bar Item with the text "Loaded n tests" should show up. When you click that Status Bar Item, a test run will be started and the text of the Status Bar Item will change to show the number of passed and failed tests.

Implementation

This really depends on what you want to do with your Test Controller. The example code shows how to subscribe to the main TestAdapter events and you can also send load/run/debug requests to them. You will receive all events sent by the Test Adapters, even if the requests that led to these events came from the Test Explorer or any other Test Controller.

Publish

  • update package.json with your preferred values (at a minimum you should change name, displayName, description, author, publisher, homepage, repository and bugs)
  • create an icon for your Test Controller (there's an SVG version of the Test Explorer icon at img/test-explorer.svg) and reference it in package.json
  • replace this README with your documentation

Now you're ready to publish the first version of your Test Controller.

About

An example Test Controller for Visual Studio Code

Resources

Readme
MIT license
Activity

Stars

5 stars

Watchers

1 watching

Forks

11 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.