This commit is contained in:
Josh Johnson 2018-01-27 18:01:04 -05:00
parent 4bd8c9eddf
commit 988fbe22c0
6 changed files with 295 additions and 18 deletions

View file

@ -4,12 +4,12 @@
//
// The module 'assert' provides assertion methods from node
import * as assert from 'assert';
import * as assert from "assert";
// You can import and use all API from the 'vscode' module
// as well as import your extension to test it
import * as vscode from 'vscode';
import * as myExtension from '../extension';
import * as vscode from "vscode";
import * as myExtension from "../extension";
// Defines a Mocha test suite to group tests of similar kind together
suite("Extension Tests", () => {
@ -19,4 +19,4 @@ suite("Extension Tests", () => {
assert.equal(-1, [1, 2, 3].indexOf(5));
assert.equal(-1, [1, 2, 3].indexOf(0));
});
});
});

View file

@ -10,13 +10,13 @@
// to report the results back to the caller. When the tests are finished, return
// a possible error to the callback or null if none.
import * as testRunner from 'vscode/lib/testrunner';
import * as testRunner from "vscode/lib/testrunner";
// You can directly control Mocha options by uncommenting the following lines
// See https://github.com/mochajs/mocha/wiki/Using-mocha-programmatically#set-options for more info
testRunner.configure({
ui: 'tdd', // the TDD UI is being used in extension.test.ts (suite, test, etc.)
ui: "tdd", // the TDD UI is being used in extension.test.ts (suite, test, etc.)
useColors: true // colored output from test results
});
module.exports = testRunner;
module.exports = testRunner;