A Mocha test runner with code coverage support for VS Code and Azure Data Studio extensions
Перейти к файлу
dependabot[bot] ade0e7b1c6
Bump debug from 4.1.1 to 4.3.4 (#18)
Bumps [debug](https://github.com/debug-js/debug) from 4.1.1 to 4.3.4.
- [Release notes](https://github.com/debug-js/debug/releases)
- [Commits](https://github.com/debug-js/debug/compare/4.1.1...4.3.4)

---
updated-dependencies:
- dependency-name: debug
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-14 11:37:21 -10:00
.github/workflows Remove gulp + lint (#10) 2022-01-31 16:48:33 -08:00
src Remove gulp + lint (#10) 2022-01-31 16:48:33 -08:00
.gitignore Cleanup 2022-01-31 16:14:05 -08:00
.npmignore Fix packaging (#13) 2022-01-31 18:48:34 -08:00
CODE_OF_CONDUCT.md CODE_OF_CONDUCT.md committed 2022-01-31 16:05:02 -08:00
LICENSE LICENSE committed 2022-01-31 16:05:03 -08:00
README.md Remove gulp + lint (#10) 2022-01-31 16:48:33 -08:00
SECURITY.md SECURITY.md committed 2022-01-31 16:05:04 -08:00
SUPPORT.md Cleanup 2022-01-31 16:14:05 -08:00
package.json Vbumping mocha to latest (#17) 2023-08-11 09:10:47 -07:00
tsconfig.json Fix packaging (#13) 2022-01-31 18:48:34 -08:00
tslint.json Remove gulp + lint (#10) 2022-01-31 16:48:33 -08:00
yarn.lock Bump debug from 4.1.1 to 4.3.4 (#18) 2023-11-14 11:37:21 -10:00

README.md

vscodetestcover

A Mocha test runner with code coverage support for VS Code and Azure Data Studio Extensions. This replaces the standard test runner from vscode/lib/testrunner and adds in code coverage support.

Usage

In a standard VSCode extension project, replace the src/test/index.ts file with the contents of sample/index.ts installed as part of this node module. This will use the test runner with coverage.

To configure coverage settings, copy the samples/coverconfig.json beside the index.ts file and edit its contents. It defines where the expected src directory is, where to save coverage files, and more.

Development

  • Run yarn install to install dependencies
  • Run yarn compile or yarn watch to compile

Releasing

Release a new version of the extension by:

  1. Bump the version in package.json
  2. Merge into main
  3. Create a new tag with the version number specified in step 1
  4. The release will be created in Github automatically by the CD pipeline, go to it and download the package artifact (tgz)
  5. Run npm publish <path to tarball>

Licensing

This code is originally from https://github.com/Microsoft/vscode-mssql. I have preserved the MIT license statement and Copyright from that project so things are still marked as Copyright Microsoft.