Revert "Switch to vscodetestcover for running extension tests (#5458)" (#5487)

This reverts commit dbac187b44.
This commit is contained in:
Charles Gagnon
2019-05-14 17:16:01 -07:00
committed by GitHub
parent e12827de3f
commit cc397a012f
40 changed files with 12695 additions and 5792 deletions

View File

@@ -4,23 +4,19 @@
*--------------------------------------------------------------------------------------------*/
const path = require('path');
import * as testRunner from 'vscodetestcover';
const testRunner = require('vscode/lib/testrunner');
const suite = 'Notebook Extension Integration Tests';
const testOptions: any = {
const options: any = {
ui: 'bdd',
useColors: true,
timeout: 600000
};
const coverageConfig: any = {
coverConfig: '../../coverageConfig.json'
};
if (process.env.BUILD_ARTIFACTSTAGINGDIRECTORY) {
testOptions.reporter = 'mocha-multi-reporters';
testOptions.reporterOptions = {
options.reporter = 'mocha-multi-reporters';
options.reporterOptions = {
reporterEnabled: 'spec, mocha-junit-reporter',
mochaJunitReporterReporterOptions: {
testsuitesTitle: `${suite} ${process.platform}`,
@@ -29,6 +25,6 @@ if (process.env.BUILD_ARTIFACTSTAGINGDIRECTORY) {
};
}
testRunner.configure(testOptions, coverageConfig);
testRunner.configure(options);
export = testRunner;