Skip to content

Commit bb2da0a

Browse files
committed
Upload coverage results
1 parent 69ec60e commit bb2da0a

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

‎build/.nycrc‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"extends": "@istanbuljs/nyc-config-typescript",
33
"all": true,
4-
"reporter": ["lcov", "html", "text", "text-summary", "cobertura"],
54
"include": [
65
"src/client/**/*.ts", "src/test/**/*.js",
76
"src/datascience-ui/**/*.ts", "src/datascience-ui/**/*.js"

‎build/ci/templates/test_phases.yml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,13 @@ steps:
160160
summaryFileLocation: "$(System.DefaultWorkingDirectory)/coverage/cobertura-coverage.xml"
161161
reportDirectory: "$(System.DefaultWorkingDirectory)/coverage"
162162

163+
# Upload Code Coverage Results (to be merged later).
164+
- task: PublishBuildArtifacts@1
165+
inputs:
166+
pathtoPublish: "$(Build.SourcesDirectory)/.nyc_output"
167+
artifactName: 'coverage-output-$(Agent.Os)'
168+
condition: always()
169+
163170
# Install the requirements for the Python or the system tests. This includes the supporting libs that
164171
# we ship in our extension such as PTVSD and Jedi.
165172
#

‎package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2182,9 +2182,10 @@
21822182
"postinstall": "node ./node_modules/vscode/bin/install && node ./build/ci/postInstall.js",
21832183
"test": "node ./out/test/standardTest.js && node ./out/test/multiRootTest.js",
21842184
"test:unittests": "mocha --opts ./build/.mocha.unittests.js.opts",
2185-
"test:unittests:cover": "nyc --nycrc-path build/.nycrc mocha --opts ./build/.mocha.unittests.ts.opts",
2185+
"test:unittests:cover": "nyc --silent --no-clean --nycrc-path build/.nycrc mocha --opts ./build/.mocha.unittests.ts.opts",
21862186
"test:functional": "mocha --require source-map-support/register --opts ./build/.mocha.functional.opts",
21872187
"test:functional:cover": "npm run test:functional",
2188+
"test:cover:report": "nyc --nycrc-path build/.nycrc report --reporter=lcov --reporter=text --reporter=html --reporter=text-summary --reporter=cobertura",
21882189
"testDebugger": "node ./out/test/testBootstrap.js ./out/test/debuggerTest.js",
21892190
"testSingleWorkspace": "node ./out/test/testBootstrap.js ./out/test/standardTest.js",
21902191
"testMultiWorkspace": "node ./out/test/testBootstrap.js ./out/test/multiRootTest.js",

0 commit comments

Comments
 (0)