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

@@ -1,3 +1,2 @@
coverage
ssmsmin
*.vsix

View File

@@ -1,7 +1,5 @@
coverage/**
out/test/**
src/**
.gitignore
coverageConfig.json
tsconfig.json
InstallSsmsMin.bat

View File

@@ -1,17 +0,0 @@
{
"enabled": true,
"relativeSourcePath": "..",
"relativeCoverageDir": "../../coverage",
"ignorePatterns": [
"**/node_modules/**"
],
"includePid": false,
"reports": [
"cobertura"
],
"verbose": false,
"remapOptions": {
"basePath": ".",
"useAbsolutePaths": true
}
}

View File

@@ -69,6 +69,6 @@
"vscode-nls": "^3.2.1"
},
"devDependencies": {
"vscodetestcover": "^1.0.2"
"vscode": "1.0.1"
}
}

View File

@@ -4,23 +4,19 @@
*--------------------------------------------------------------------------------------------*/
const path = require('path');
import * as testRunner from 'vscodetestcover';
const testRunner = require('vscode/lib/testrunner');
const suite = 'Database Admin Tool Extensions for Windows';
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;

File diff suppressed because it is too large Load Diff