You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Take a look at the updated helloworld-test-sample. Make sure the test is runnable with npm run compile && npm run test. Look through the runTests.ts and suite/index.ts and make sure the API makes sense to you. Try adjusting the runTests options as well to see if it works as expected.
Then do the same thing with yo code. Ensure they generate the same code as the sample, and their test script in package.json is runnable.
Open issues for any confusing API, docs, sample code, etc.
Test 2
We made a change to how the test runner script is launched:
interfaceITestRunner{/** Old test runner API, as exported from `vscode/lib/testrunner` */run(testsRoot: string,clb: (error: Error,failures?: number)=>void): void;}interfaceINewTestRunner{/** New test runner API, as explained in the extension test doc */run(): Promise<void>;}
Current insider version should allow both test runner to be run.
Old extension that depends on vscode uses vscode/lib/testrunner and exports a run function of ITestRunner signature.
Current sample has a hand-written run function of ITestRunner signature
When we release, I'll update the sample/generator to use INewTestRunner
Your task is to make sure INewTestRunner runs fine for our Insiders. You have to close all Insider instance before running integration test scripts.
Refs: #74560, #74555 and #74436
Complexity: 3
We have tested the new vscode-test API in #74436. I resolved remaining complaints of #74560 and #74555 in this milestone.
High Level Changes:
vscode-test
API change: https://github.com/microsoft/vscode-test/blob/master/CHANGELOG.md#100-next0--2019-06-24 for Run test options: Polish APIs #74560.run()
function signature change. See runTests.d.ts spec not consistent with code #74555 (comment).Prep:
npm install -g generator-code@next
This should install
generator-code@1.2.0-next.2
Test 1
Docs
Take a look at the updated helloworld-test-sample. Make sure the test is runnable with
npm run compile && npm run test
. Look through therunTests.ts
andsuite/index.ts
and make sure the API makes sense to you. Try adjusting therunTests
options as well to see if it works as expected.Then do the same thing with
yo code
. Ensure they generate the same code as the sample, and theirtest
script inpackage.json
is runnable.Open issues for any confusing API, docs, sample code, etc.
Test 2
We made a change to how the test runner script is launched:
Current insider version should allow both test runner to be run.
vscode
usesvscode/lib/testrunner
and exports arun
function ofITestRunner
signature.run
function ofITestRunner
signatureINewTestRunner
Your task is to make sure
INewTestRunner
runs fine for our Insiders.You have to close all Insider instance before running integration test scripts.
npm run compile && npm run test
. Make sure it runs test fine and exits normally.The text was updated successfully, but these errors were encountered: