src/Tools/VSCode/extension/test/index.ts
author wenzelm
Mon Mar 25 17:21:26 2019 +0100 (2 months ago)
changeset 69981 3dced198b9ec
parent 64605 9c1173a7e4cb
permissions -rw-r--r--
more strict AFP properties;
wenzelm@64605
     1
//
wenzelm@64605
     2
// PLEASE DO NOT MODIFY / DELETE UNLESS YOU KNOW WHAT YOU ARE DOING
wenzelm@64605
     3
//
wenzelm@64605
     4
// This file is providing the test runner to use when running extension tests.
wenzelm@64605
     5
// By default the test runner in use is Mocha based.
wenzelm@64605
     6
//
wenzelm@64605
     7
// You can provide your own test runner if you want to override it by exporting
wenzelm@64605
     8
// a function run(testRoot: string, clb: (error:Error) => void) that the extension
wenzelm@64605
     9
// host can call to run the tests. The test runner is expected to use console.log
wenzelm@64605
    10
// to report the results back to the caller. When the tests are finished, return
wenzelm@64605
    11
// a possible error to the callback or null if none.
wenzelm@64605
    12
wenzelm@64605
    13
var testRunner = require('vscode/lib/testrunner');
wenzelm@64605
    14
wenzelm@64605
    15
// You can directly control Mocha options by uncommenting the following lines
wenzelm@64605
    16
// See https://github.com/mochajs/mocha/wiki/Using-mocha-programmatically#set-options for more info
wenzelm@64605
    17
testRunner.configure({
wenzelm@64605
    18
    ui: 'tdd', 		// the TDD UI is being used in extension.test.ts (suite, test, etc.)
wenzelm@64605
    19
    useColors: true // colored output from test results
wenzelm@64605
    20
});
wenzelm@64605
    21
wenzelm@64605
    22
module.exports = testRunner;