vscode-test-runner
TypeScript icon, indicating that this package has built-in type declarations

0.0.13 • Public • Published

vscode-test-runner

Helper package for vscode test runners. This package does not do anything on itself - needs to be used by VSCode extension package.

Provides base framework for creating code lens before each describe, it, suite and test function call in test files.

Lense on it and test function shows last test result and can be used to run given test (tests titles needs to be unique otherwise more than one test will be executed).

Lense on describe and suite shows aggregated results from nested it and test and can be used to run all tests in given group / only test with specific status.

Click on code lense will execute command defined in commandRunTest option.

Command needs to have this signature:

import { CodeLens } from 'vscode-test-runner';
type Signature = (codeLens: CodeLens) => void;

Preview

preview

Note

Package uses local copy of vscode.d.ts file - ensure that this file is the same as node_modules/vscode/vscode.d.ts from extension package.

Readme

Keywords

Package Sidebar

Install

npm i vscode-test-runner

Weekly Downloads

1

Version

0.0.13

License

MIT

Last publish

Collaborators

  • cstechnologies