check only extension
This commit is contained in:
parent
55ab8b53f8
commit
3c3686e0fb
1 changed files with 9 additions and 6 deletions
|
@ -9,13 +9,16 @@ import * as vscode from 'vscode';
|
|||
|
||||
suite('vscode server cli', () => {
|
||||
|
||||
const extension = process.env.TESTRESOLVER_INSTALL_BUILTIN_EXTENSION;
|
||||
const skip = !process.env.BUILD_SOURCEVERSION // Skip it when running out of sources
|
||||
|| !process.env.REMOTE_VSCODE // Skip it when not a remote integration test
|
||||
|| !extension // Skip it when extension is not provided to server
|
||||
;
|
||||
|
||||
(skip ? test.skip : test)('extension is installed and enabled when installed by server cli', function () {
|
||||
test('extension is installed and enabled when installed by server cli', function () {
|
||||
const extension = process.env.TESTRESOLVER_INSTALL_BUILTIN_EXTENSION;
|
||||
if (/* !process.env.BUILD_SOURCEVERSION // Skip it when running out of sources
|
||||
|| !process.env.REMOTE_VSCODE // Skip it when not a remote integration test
|
||||
|| */!extension // Skip it when extension is not provided to server
|
||||
) {
|
||||
this.skip();
|
||||
}
|
||||
|
||||
assert.ok(vscode.extensions.getExtension(extension!));
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue