Skip to content

Commit

Permalink
Improve client test execution
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaeumer committed Nov 29, 2019
1 parent 7c234f0 commit 4c40cd3
Show file tree
Hide file tree
Showing 11 changed files with 45 additions and 44 deletions.
2 changes: 1 addition & 1 deletion client-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"clean": "node ../node_modules/rimraf/bin.js lib",
"compile": "node ../build/bin/tsc -b ./tsconfig.json",
"watch": "node ../build/bin/tsc -b ./tsconfig.json -w",
"test": "node ../build/bin/symlink-tests && node lib/runTests.js"
"test": "node lib/runTests.js"
},
"dependencies": {
"vscode-languageclient": "5.3.0-next.7",
Expand Down
8 changes: 4 additions & 4 deletions client-tests/src/converter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
import { strictEqual, deepEqual, ok } from 'assert';

import * as proto from 'vscode-languageserver-protocol';
import * as codeConverter from 'vscode-languageclient/lib/codeConverter';
import * as protocolConverter from 'vscode-languageclient/lib/protocolConverter';
import ProtocolCompletionItem from 'vscode-languageclient/lib/protocolCompletionItem';
import * as Is from 'vscode-languageclient/lib/utils/is';
import * as codeConverter from '../../client/lib/codeConverter';
import * as protocolConverter from '../../client/lib/protocolConverter';
import ProtocolCompletionItem from '../../client/lib/protocolCompletionItem';
import * as Is from '../../client/lib/utils/is';

import * as vscode from 'vscode';
import { CompletionItemTag } from 'vscode-languageserver-protocol';
Expand Down
2 changes: 1 addition & 1 deletion client-tests/src/helpers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { strictEqual, ok } from 'assert';
import {
Position, Range, TextDocumentIdentifier, TextDocumentItem, VersionedTextDocumentIdentifier, Command, CodeLens, CodeActionContext,
Diagnostic, DiagnosticSeverity, WorkspaceChange, TextDocumentEdit, CreateFile, RenameFile, DeleteFile
} from 'vscode-languageserver-protocol';
} from '../../protocol/lib/main';

suite('Protocol Helper Tests', () => {
function rangeEqual(actual: Range, expected: Range) {
Expand Down
2 changes: 1 addition & 1 deletion client-tests/src/integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
'use strict';

import * as assert from 'assert';
import * as lsclient from 'vscode-languageclient/lib/main';
import * as path from 'path';
import * as lsclient from '../../client/lib/main';

suite('Client integration', () => {

Expand Down
2 changes: 1 addition & 1 deletion client-tests/src/servers/testInitializeResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import * as assert from 'assert';
import {
createConnection, IConnection, InitializeParams, ServerCapabilities, CompletionItemKind, ResourceOperationKind, FailureHandlingKind,
DiagnosticTag, CompletionItemTag, TextDocumentSyncKind
} from 'vscode-languageserver/lib/main';
} from '../../../server/lib/main';

let connection: IConnection = createConnection();

Expand Down
7 changes: 4 additions & 3 deletions client-tests/src/workspaceFolders.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
import * as assert from 'assert';
import * as vscode from 'vscode';
import * as sinon from 'sinon';
import { WorkspaceFoldersFeature } from 'vscode-languageclient/lib/workspaceFolders';
import { BaseLanguageClient, MessageTransports, DidChangeWorkspaceFoldersParams } from 'vscode-languageclient';
import * as proto from 'vscode-languageserver-protocol';

import { WorkspaceFoldersFeature } from '../../client/lib/workspaceFolders';
import { BaseLanguageClient, MessageTransports, DidChangeWorkspaceFoldersParams } from '../../client/lib/main';
import * as proto from '../../protocol/lib/main';

class TestLanguageClient extends BaseLanguageClient {
protected createMessageTransports(): Promise<MessageTransports> {
Expand Down
24 changes: 12 additions & 12 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion jsonrpc/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions protocol/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 12 additions & 12 deletions server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion types/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4c40cd3

Please sign in to comment.