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,2 +1 @@
coverage
*.vsix

View File

@@ -1,5 +1,3 @@
coverage/**
src/**
out/test/**
coverageConfig.json
tsconfig.json

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

@@ -52,7 +52,7 @@
"mocha": "^5.2.0",
"should": "^13.2.1",
"typemoq": "^2.1.0",
"vscodetestcover": "^1.0.2"
"vscode": "1.1.5"
},
"__metadata": {
"id": "10",

View File

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

File diff suppressed because it is too large Load Diff