Giter VIP home page Giter VIP logo

vscodetestcover's Introduction

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.

vscodetestcover's People

Contributors

aasimkhan30 avatar alanrenmsft avatar charles-gagnon avatar dependabot[bot] avatar microsoft-github-operations[bot] avatar microsoftopensource avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.