No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode init Jan 12, 2017
src init Jan 12, 2017
test init Jan 12, 2017
.gitignore init Jan 12, 2017
.travis.yml Add linux before-install section Jan 12, 2017
.vscodeignore init Jan 12, 2017
CHANGELOG.md init Jan 12, 2017
LICENSE init Jan 12, 2017
README.md Update README.md Apr 26, 2018
coverconfig.json init Jan 12, 2017
package.json init Jan 12, 2017
tsconfig.json init Jan 12, 2017

README.md

Codecov VSCode Extension Example

codecov Build Status

tl;dr

  1. Clone this repo git clone git@github.com:codecov/example-typescript-vscode-extension.git
  2. Start working on your TypeScript project (only ts-code)

Guide

Travis Setup

Add to your .travis.yml file.

language: node

before_install:
  - if [ $TRAVIS_OS_NAME == "linux" ]; then
      export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0;
      sh -e /etc/init.d/xvfb start;
      sleep 3;
    fi

script:
  - npm run vscode:prepublish
  - npm test

after_success:
- bash <(curl -s https://codecov.io/bash)

Producing Coverage Reports

Make sure you build your extension. In this case via tsc -p ./ or simply npm run vscode:prepublish

Add to coverconfig.json:

{
    "enabled": true,
    "relativeSourcePath": "../src",
    "relativeCoverageDir": "../../coverage",
    "ignorePatterns": ["**/node_modules/**"],
    "includePid": false,
    "reports": ["json", "html", "lcov"],
    "verbose": false
}

Run npm test which runs node ./node_modules/vscode/bin/test

Differences to standard yo code generated example

  • Modified test/index.ts - the main testrunner rewritten completely
  • Changes in stripts and devDependencies section in package.json
  • coverconfig.json added - small config file to change coverage settings localy.

Caveats

Private Repos

Add to your .travis.yml file.

after_success:
  - bash <(curl -s https://codecov.io/bash) -t uuid-repo-token
  1. More documentation at https://docs.codecov.io
  2. Configure codecov through the codecov.yml https://docs.codecov.io/docs/codecov-yaml

We are happy to help if you have any questions. Please contact email our Support at support@codecov.io