Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yarn and code coverage #475

Merged
merged 169 commits into from
Jan 3, 2018
Merged
Show file tree
Hide file tree
Changes from 167 commits
Commits
Show all changes
169 commits
Select commit Hold shift + click to select a range
ecc1ca9
Fix Microsoft/vscode#37627 (#1368)
octref Nov 3, 2017
7c5778c
Version 0.7.0 of extension (#1381)
DonJayamanne Nov 9, 2017
9d1bf82
Update README.md
DonJayamanne Nov 9, 2017
ffba179
Update README.md
DonJayamanne Nov 9, 2017
905c713
sync fork with upstream
DonJayamanne Nov 10, 2017
acc2109
fix readme
DonJayamanne Nov 10, 2017
d470523
Merge branch 'master' of https://github.com/Microsoft/vscode-python
DonJayamanne Nov 16, 2017
d392e8b
merged upstream
DonJayamanne Nov 16, 2017
92f775f
Merge remote-tracking branch 'upstream/master'
DonJayamanne Nov 20, 2017
32a6e53
Merge remote-tracking branch 'upstream/master'
DonJayamanne Nov 21, 2017
4b30f2c
Merge remote-tracking branch 'upstream/master'
DonJayamanne Nov 22, 2017
e396752
Merge remote-tracking branch 'upstream/master'
DonJayamanne Nov 22, 2017
eff4792
Merge remote-tracking branch 'upstream/master'
DonJayamanne Nov 28, 2017
4553c28
Merge remote-tracking branch 'upstream/master'
DonJayamanne Nov 28, 2017
3c6520a
Merge remote-tracking branch 'upstream/master'
DonJayamanne Nov 28, 2017
966e516
Merge remote-tracking branch 'upstream/master'
DonJayamanne Nov 28, 2017
63d2d65
Merge remote-tracking branch 'upstream/master'
DonJayamanne Nov 28, 2017
f6d469e
Merge remote-tracking branch 'upstream/master'
DonJayamanne Nov 28, 2017
029e055
Merge remote-tracking branch 'upstream/master'
DonJayamanne Nov 30, 2017
e8c71c0
Merge remote-tracking branch 'upstream/master'
DonJayamanne Nov 30, 2017
51cf9d2
Merge remote-tracking branch 'upstream/master'
DonJayamanne Dec 1, 2017
7aadc43
Merge remote-tracking branch 'upstream/master'
DonJayamanne Dec 1, 2017
f0f5c59
Merge remote-tracking branch 'upstream/master'
DonJayamanne Dec 4, 2017
b2b9da9
Merge remote-tracking branch 'upstream/master'
DonJayamanne Dec 4, 2017
30a4091
Merge remote-tracking branch 'upstream/master'
DonJayamanne Dec 5, 2017
b16d2f9
Merge remote-tracking branch 'upstream/master'
DonJayamanne Dec 6, 2017
c8db345
Merge remote-tracking branch 'upstream/master'
DonJayamanne Dec 7, 2017
0df7f16
Merge remote-tracking branch 'upstream/master'
DonJayamanne Dec 8, 2017
3ccc881
Merge remote-tracking branch 'upstream/master'
DonJayamanne Dec 9, 2017
bb0709e
Merge remote-tracking branch 'upstream/master'
DonJayamanne Dec 11, 2017
2c19004
Merge remote-tracking branch 'upstream/master'
DonJayamanne Dec 11, 2017
8f224ab
Merge remote-tracking branch 'upstream/master'
DonJayamanne Dec 11, 2017
41b7080
Merge remote-tracking branch 'upstream/master'
DonJayamanne Dec 12, 2017
dab38dc
Merge remote-tracking branch 'upstream/master'
DonJayamanne Dec 12, 2017
ae22dd4
Merge remote-tracking branch 'upstream/master'
DonJayamanne Dec 12, 2017
d2340d2
Merge remote-tracking branch 'upstream/master'
DonJayamanne Dec 14, 2017
bcb8879
use new exec engine instead of spawning manually
DonJayamanne Dec 14, 2017
c6d6f50
refactor to use new execution framework
DonJayamanne Dec 15, 2017
65a949b
refactor to use new exec framework
DonJayamanne Dec 15, 2017
c8559ea
fix linter errors
DonJayamanne Dec 15, 2017
51a2802
refactor
DonJayamanne Dec 15, 2017
c778493
disable messages and copy config files
DonJayamanne Dec 15, 2017
a34a62c
remove old execution layer
DonJayamanne Dec 15, 2017
9452d0e
misc
DonJayamanne Dec 15, 2017
52bb7ae
Merge remote-tracking branch 'upstream/master'
DonJayamanne Dec 15, 2017
5760886
merged master
DonJayamanne Dec 15, 2017
1714f0c
Merge branch 'D' into FixDebuggerEnvVars
DonJayamanne Dec 15, 2017
1bdc95d
fix tests
DonJayamanne Dec 15, 2017
0313000
fix tests
DonJayamanne Dec 15, 2017
e7eb19e
disable message D102
DonJayamanne Dec 15, 2017
d09b3ef
fix bug introduced into test
DonJayamanne Dec 15, 2017
0467d4c
fix tests
DonJayamanne Dec 15, 2017
ffdfd5d
fixed code review comments
DonJayamanne Dec 15, 2017
59ff402
added tests for env variable parsing
DonJayamanne Dec 16, 2017
bab860f
remove metadata
DonJayamanne Dec 18, 2017
b6b2531
Merge remote-tracking branch 'upstream/master'
DonJayamanne Dec 19, 2017
2b21cec
merged master
DonJayamanne Dec 19, 2017
56d5c60
Merge branch 'FixDebuggerEnvVars' into EnvVarFixes
DonJayamanne Dec 19, 2017
0ea674b
Merge branch 'RefactorJediAndOthers' into EnvVarFixes
DonJayamanne Dec 19, 2017
09d2372
refactor environment variables parser
DonJayamanne Dec 19, 2017
203e13e
fixed linter error
DonJayamanne Dec 19, 2017
21601f2
Fixed code review comments
DonJayamanne Dec 19, 2017
733f9a1
Merge branch 'RefactorJediAndOthers' into EnvVarFixes
DonJayamanne Dec 19, 2017
24fa57e
added tests for env vars service
DonJayamanne Dec 19, 2017
649b7e7
console could be null
DonJayamanne Dec 19, 2017
8d8d2fc
Merge remote-tracking branch 'upstream/master'
DonJayamanne Dec 19, 2017
6641ec8
merged master
DonJayamanne Dec 19, 2017
b65d7c0
merged master
DonJayamanne Dec 19, 2017
e6c9472
use new env variables service in jedi service
DonJayamanne Dec 20, 2017
bf2d5d5
fix #456
DonJayamanne Dec 21, 2017
98b6993
add missing service registrations
DonJayamanne Dec 21, 2017
db84ded
Merge branch 'EnvVarFixes' into CommonToolExecution
DonJayamanne Dec 21, 2017
fcf3a24
yarn install
DonJayamanne Dec 21, 2017
25e4b71
add missing service registration
DonJayamanne Dec 21, 2017
f0eff10
print version of python
DonJayamanne Dec 21, 2017
81bec0a
Merge branch 'EnvVarFixes' into CommonToolExecution
DonJayamanne Dec 21, 2017
bc34320
disable osx
DonJayamanne Dec 21, 2017
390d43e
revert to npm with yarn globally
DonJayamanne Dec 21, 2017
c6f9295
initial
DonJayamanne Dec 21, 2017
eba3c51
code coverage
DonJayamanne Dec 21, 2017
3bbbaaa
add missing service registration
DonJayamanne Dec 21, 2017
ca0a55f
Merge branch 'CommonToolExecution' into YarnAndCodeCoverage
DonJayamanne Dec 21, 2017
6b90c29
upload builds
DonJayamanne Dec 21, 2017
9be7b6a
test upload of builds
DonJayamanne Dec 21, 2017
9e60bdf
move exports to the top
DonJayamanne Dec 21, 2017
90e2352
upload after success
DonJayamanne Dec 21, 2017
a6525ab
run all tests
DonJayamanne Dec 22, 2017
5ab101b
fix branch name
DonJayamanne Dec 22, 2017
0f43394
initial
DonJayamanne Dec 22, 2017
1ade067
escape paths
DonJayamanne Dec 22, 2017
3e1e146
enable builds
DonJayamanne Dec 22, 2017
0c871eb
disable azure telemetry
DonJayamanne Dec 22, 2017
f8a9171
disable azure telemetry
DonJayamanne Dec 22, 2017
4f6152e
turn off build
DonJayamanne Dec 22, 2017
fa41b20
remove incorrect command
DonJayamanne Dec 22, 2017
ab8377d
remove invalid command
DonJayamanne Dec 22, 2017
f5dfde6
fix case insensitive searches for files on windows tests
DonJayamanne Dec 22, 2017
4aa9329
fix test search
DonJayamanne Dec 22, 2017
19df1b6
fix linter
DonJayamanne Dec 22, 2017
5a73d54
comment
DonJayamanne Dec 22, 2017
a45b38d
disable uploads of coverage and builds
DonJayamanne Dec 22, 2017
1225184
fix path checks
DonJayamanne Dec 22, 2017
063808b
Fix path checks on windows
DonJayamanne Dec 23, 2017
ce87814
merge
DonJayamanne Dec 23, 2017
d21d59c
fix path checks
DonJayamanne Dec 23, 2017
50053e3
enable py3 tests
DonJayamanne Dec 23, 2017
2fd956e
enable other modules
DonJayamanne Dec 23, 2017
ab5453b
Merge branch 'AppVeyor' of https://github.com/DonJayamanne/pythonVSCo…
DonJayamanne Dec 23, 2017
856c0c0
enable test for multi root as well
DonJayamanne Dec 23, 2017
7cad8dc
we don't need coverage or uploads from apveyor
DonJayamanne Dec 23, 2017
3d7e91d
better post build setup
DonJayamanne Dec 23, 2017
36b7bb0
build package when releasing
DonJayamanne Dec 23, 2017
84c4351
remove asserts from before and after test hooks
DonJayamanne Dec 23, 2017
7fc9120
Merge branch 'YarnAndCodeCoverage' into AppVeyor
DonJayamanne Dec 23, 2017
d306d56
revert build step
DonJayamanne Dec 23, 2017
37a72a5
fix multiple resolves and resolve when windows close
DonJayamanne Dec 23, 2017
4750999
use env service instead of child_process
DonJayamanne Dec 29, 2017
86eb43f
swallow the exception
DonJayamanne Dec 29, 2017
ead278c
fix shebang detection
DonJayamanne Dec 29, 2017
30169f9
Merge branch 'CompleteCodeExec' into AppVeyor
DonJayamanne Dec 29, 2017
7266325
Merge branch 'CompleteCodeExec' into YarnAndCodeCoverage
DonJayamanne Dec 29, 2017
97c888c
Merge branch 'CompleteCodeExec' into AppVeyor
DonJayamanne Dec 29, 2017
0a6f625
Merge branch 'AppVeyor' of https://github.com/DonJayamanne/pythonVSCo…
DonJayamanne Dec 29, 2017
3773820
fix vscode warnings when accessing configs
DonJayamanne Dec 29, 2017
634582d
simplify code to close editors
DonJayamanne Dec 29, 2017
7f265d6
put limit on wait time
DonJayamanne Dec 29, 2017
3bef891
simpler if
DonJayamanne Dec 29, 2017
f455263
clean up closing of windows
DonJayamanne Dec 29, 2017
04969dc
add debug statements
DonJayamanne Dec 29, 2017
6a337b2
more logging
DonJayamanne Dec 29, 2017
3874a30
and more logging
DonJayamanne Dec 29, 2017
d444de4
and again
DonJayamanne Dec 29, 2017
e9d74c3
remove logging
DonJayamanne Dec 29, 2017
2511f12
fix calling of async functions without callbacks
DonJayamanne Dec 30, 2017
ea84e1d
remove npm
DonJayamanne Dec 30, 2017
a49aa3b
update contrib guidelines
DonJayamanne Dec 30, 2017
61f23fb
Merge branch 'YarnAndCodeCoverage' into AppVeyor
DonJayamanne Dec 30, 2017
7e2d820
removed activation of documents
DonJayamanne Jan 1, 2018
97589d6
fixed tests
DonJayamanne Jan 1, 2018
67daea1
add missing decorators
DonJayamanne Jan 1, 2018
b01b98d
fix tests
DonJayamanne Jan 1, 2018
50061be
use yarn instead of npm in appveyor
DonJayamanne Jan 1, 2018
b31bafd
do not activate document
DonJayamanne Jan 1, 2018
95e4bda
remove app veyor file
DonJayamanne Jan 2, 2018
30d0bb5
remove imports of 'reflect-metadata'
DonJayamanne Jan 2, 2018
5eb11dc
Merge branch 'EnvVarFixes' into CommonToolExecution
DonJayamanne Jan 2, 2018
1f5fe49
Merge branch 'CommonToolExecution' into CompleteCodeExec
DonJayamanne Jan 2, 2018
9c91ca3
Merge branch 'CompleteCodeExec' into YarnAndCodeCoverage
DonJayamanne Jan 2, 2018
e53e48c
fix linter warnings
DonJayamanne Jan 2, 2018
ffc5084
use codecov instead of coveralls
DonJayamanne Jan 3, 2018
2988211
upload to coverio
DonJayamanne Jan 3, 2018
2846eda
format condition
DonJayamanne Jan 3, 2018
230e270
added missing colon
DonJayamanne Jan 3, 2018
3fcbdf1
clean travis
DonJayamanne Jan 3, 2018
5b5f69d
add json report
DonJayamanne Jan 3, 2018
00d3fdd
upload using bash script
DonJayamanne Jan 3, 2018
6ac63bf
conditionally upload coverage reports
DonJayamanne Jan 3, 2018
c425a55
Merge remote-tracking branch 'upstream/master'
DonJayamanne Jan 3, 2018
f8b9eac
merge master
DonJayamanne Jan 3, 2018
b55ad34
Merge branch 'CommonToolExecution' into YarnAndCodeCoverage
DonJayamanne Jan 3, 2018
8855bf7
Merge branch 'CommonToolExecution' into CompleteCodeExec
DonJayamanne Jan 3, 2018
3963217
Merge remote-tracking branch 'upstream/master'
DonJayamanne Jan 3, 2018
9ab1013
merge master
DonJayamanne Jan 3, 2018
ab5ab4d
Merge branch 'CompleteCodeExec' into YarnAndCodeCoverage
DonJayamanne Jan 3, 2018
9cf62a5
remove unwanted files
DonJayamanne Jan 3, 2018
a696f2a
Merge remote-tracking branch 'upstream/master'
DonJayamanne Jan 3, 2018
8019956
merged master;
DonJayamanne Jan 3, 2018
95517f7
resolve code review
DonJayamanne Jan 3, 2018
3bc6bd3
fix code review issues
DonJayamanne Jan 3, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ node_modules
__pycache__
npm-debug.log
**/.mypy_cache/**
!yarn.lock
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you explicitly not ignoring yarn.lock instead of just not listing it in the .gitignore file?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to be getting ignored on my pc and mac. Hence figured i might as well be explicit.
Not sure what I've done to exclude these (i don't recall changing this in my global config)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, fair enough. I would check your global .gitignore file to see what that has.

coverage/
34 changes: 15 additions & 19 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
language: python
cache: pip

addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.9
- g++-4.9
- gcc-4.9-multilib
- g++-4.9-multilib
- libgtk2.0-0
- libx11-dev
- libxkbfile-dev
- libsecret-1-dev
- python-dev
matrix:
include:
# # Use the built in venv for linux builds
Expand Down Expand Up @@ -43,17 +29,27 @@ before_install: |
source ./.nvm/nvm.sh
nvm install 8.9.1
nvm use 8.9.1
npm i -g [email protected]
npm config set python `which python`
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
pyenv install $PYTHON
pyenv global $PYTHON
fi
export TRAVIS_PYTHON_PATH=`which python`
install:
- pip install --upgrade -r requirements.txt
- npm install
- npm run vscode:prepublish
- yarn

script:
- npm test --silent
- yarn run clean
- yarn run vscode:prepublish
- yarn run cover:enable
- yarn run testSingleWorkspace --silent
- if [ $TRAVIS_UPLOAD_COVERAGE == "true" ]; then
bash <(curl -s https://codecov.io/bash);
fi
- yarn run clean
- yarn run vscode:prepublish
- yarn run cover:enable
- yarn run testMultiWorkspace --silent
- if [ $TRAVIS_UPLOAD_COVERAGE == "true" ]; then
bash <(curl -s https://codecov.io/bash);
fi
170 changes: 93 additions & 77 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,80 +1,96 @@
// A launch configuration that compiles the extension and then opens it inside a new window
{
"version": "0.1.0",
"configurations": [
{
"name": "Launch Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}"
],
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": [
"${workspaceFolder}/out/**/*.js"
],
"preLaunchTask": "Compile"
},
{
"name": "Launch Extension as debugServer", // https://code.visualstudio.com/docs/extensions/example-debuggers
"type": "node",
"request": "launch",
"program": "${workspaceFolder}/out/client/debugger/Main.js",
"stopOnEntry": false,
"args": [
"--server=4711"
],
"sourceMaps": true,
"outFiles": [
"${workspaceFolder}/out/client/**/*.js"
],
"cwd": "${workspaceFolder}",
"preLaunchTask": "Compile"
},
{
"name": "Launch Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"${workspaceFolder}/src/test",
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/test"
],
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": [
"${workspaceFolder}/out/**/*.js"
],
"preLaunchTask": "Compile"
},
{
"name": "Launch Multiroot Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"${workspaceFolder}/src/testMultiRootWkspc/multi.code-workspace",
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/test"
],
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": [
"${workspaceFolder}/out/**/*.js"
],
"preLaunchTask": "Compile"
}
],
"compounds": [
{
"name": "Extension + Debugger",
"configurations": [
"Launch Extension",
"Launch Extension as debugServer"
]
}
]
"version": "0.1.0",
"configurations": [
{
"name": "Launch Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}"
],
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": [
"${workspaceFolder}/out/**/*.js"
],
"preLaunchTask": "Compile"
},
{
"name": "Launch Extension as debugServer", // https://code.visualstudio.com/docs/extensions/example-debuggers
"type": "node",
"request": "launch",
"program": "${workspaceFolder}/out/client/debugger/Main.js",
"stopOnEntry": false,
"args": [
"--server=4711"
],
"sourceMaps": true,
"outFiles": [
"${workspaceFolder}/out/client/**/*.js"
],
"cwd": "${workspaceFolder}",
"preLaunchTask": "Compile"
},
{
"name": "Launch Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"${workspaceFolder}/src/test",
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/test"
],
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": [
"${workspaceFolder}/out/**/*.js"
],
"preLaunchTask": "Compile"
},
{
"name": "Launch Multiroot Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"${workspaceFolder}/src/testMultiRootWkspc/multi.code-workspace",
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/test"
],
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": [
"${workspaceFolder}/out/**/*.js"
],
"preLaunchTask": "Compile"
},
{
"name": "Launch Tests (with code coverage)",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"${workspaceFolder}/src/test",
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/test"
],
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": [
"${workspaceFolder}/out/**/*.js"
]
}
],
"compounds": [
{
"name": "Extension + Debugger",
"configurations": [
"Launch Extension",
"Launch Extension as debugServer"
]
}
]
}
35 changes: 18 additions & 17 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
// Place your settings in this file to overwrite default and user settings.
{
"files.exclude": {
"out": true, // set this to true to hide the "out" folder with the compiled JS files
"**/*.pyc": true,
"**/__pycache__": true,
"node_modules": true,
".vscode-test": true,
"**/.mypy_cache/**": true,
"**/.ropeproject/**": true
},
"search.exclude": {
"out": true // set this to false to include "out" folder in search results
},
"typescript.tsdk": "./node_modules/typescript/lib", // we want to use the TS server from our node_modules folder to control its version
"tslint.enable": true,
"python.linting.enabled": false,
"python.unitTest.promptToConfigure": false,
"python.workspaceSymbols.enabled": false,
"files.exclude": {
"out": true, // set this to true to hide the "out" folder with the compiled JS files
"**/*.pyc": true,
"**/__pycache__": true,
"node_modules": true,
".vscode-test": true,
"**/.mypy_cache/**": true,
"**/.ropeproject/**": true
},
"search.exclude": {
"out": true, // set this to false to include "out" folder in search results
"coverage": true
},
"typescript.tsdk": "./node_modules/typescript/lib", // we want to use the TS server from our node_modules folder to control its version
"tslint.enable": true,
"python.linting.enabled": false,
"python.unitTest.promptToConfigure": false,
"python.workspaceSymbols.enabled": false,
"python.formatting.provider": "none",
"files.insertFinalNewline": true
}
15 changes: 15 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,34 @@
.vscode/**
typings/**
out/test/**
out/src/**
out/pythonFiles/**
out/testMultiRootWkspc/**
test/**
src/**
scripts/**
**/*.map
.gitignore
.gitmodules
.editorconfig
.eslintrc
.gitattributes
images/**/*.gif
images/**/*.png
tsconfig.json
typings.json
coverconfig.json
tslint.json
tsfmt.json
gulpfile.js
pythonFiles/**/*.pyc
requirements.txt
vsc-extension-quickstart.md
.travis.yml
webpack.config.js
yarn.lock
coverage/**
CODE_OF_CONDUCT.md
CODING_STANDARDS.md
CONTRIBUTING.md
ISSUE_TEMPLATE.md
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
```shell
git clone https://github.com/microsoft/vscode-python
cd vscode-python
npm install
yarn install
```

### Incremental Build
Expand Down
17 changes: 17 additions & 0 deletions coverconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"enabled": false,
"relativeSourcePath": "../client",
"relativeCoverageDir": "../../coverage",
"ignorePatterns": [
"**/node_modules/**"
],
"reports": [
"text-summary",
"json-summary",
"json",
"html",
"lcov",
"lcovonly"
],
"verbose": false
}
25 changes: 25 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ const colors = require('colors/safe');
const gitmodified = require('gulp-gitmodified');
const path = require('path');
const debounce = require('debounce');
const jeditor = require("gulp-json-editor");
const del = require('del');

/**
* Hygiene works by creating cascading subsets of all our files and
Expand Down Expand Up @@ -61,6 +63,29 @@ gulp.task('hygiene-watch', () => gulp.watch(all, debounce(() => run({ mode: 'cha

gulp.task('hygiene-modified', ['compile'], () => run({ mode: 'changes' }));

gulp.task('clean', ['output:clean', 'cover:clean'], () => { });

gulp.task('output:clean', () => del('coverage'));

gulp.task('cover:clean', () => del('coverage'));

gulp.task('cover:enable', () => {
return gulp.src("./coverconfig.json")
.pipe(jeditor((json) => {
json.enabled = true;
return json;
}))
.pipe(gulp.dest("./out", { 'overwrite': true }));
});

gulp.task('cover:disable', () => {
return gulp.src("./coverconfig.json")
.pipe(jeditor((json) => {
json.enabled = true;
return json;
}))
.pipe(gulp.dest("./out", { 'overwrite': true }));
});

/**
* @typedef {Object} hygieneOptions - creates a new type named 'SpecialType'
Expand Down
Loading