Add notebook integration tests (#4652)

* Add notebook integration tests
This commit is contained in:
Yurong He
2019-03-22 10:39:44 -07:00
committed by GitHub
parent 756f77063a
commit 71db7e10b6
5 changed files with 153 additions and 3 deletions

View File

@@ -8,6 +8,7 @@
import 'mocha';
import * as vscode from 'vscode';
import { context } from './testContext';
import assert = require('assert');
if (!context.RunTest) {
suite('integration test setup', () => {
@@ -16,6 +17,10 @@ if (!context.RunTest) {
await vscode.commands.executeCommand('test.setupIntegrationTest');
//Reload the window, this is required for some changes made by the 'test.setupIntegrationTest' to work
await vscode.commands.executeCommand('workbench.action.reloadWindow');
assert(process.env.BDC_BACKEND_HOSTNAME !== undefined &&
process.env.BDC_BACKEND_USERNAME !== undefined &&
process.env.BDC_BACKEND_PWD !== undefined, 'BDC_BACKEND_HOSTNAME, BDC_BACKEND_USERNAME, BDC_BACKEND_PWD must be set using ./scripts/setbackenvariables.sh or .\\scripts\\setbackendvaraibles.bat');
});
});
}