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,17 +0,0 @@
{
"enabled": true,
"relativeSourcePath": "..",
"relativeCoverageDir": "../../coverage",
"ignorePatterns": [
"**/node_modules/**"
],
"includePid": false,
"reports": [
"cobertura"
],
"verbose": false,
"remapOptions": {
"basePath": ".",
"useAbsolutePaths": true
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -52,9 +52,8 @@
"@types/node": "7.0.43",
"@types/chai": "3.4.34",
"mocha-junit-reporter": "^1.17.0",
"mocha-multi-reporters": "^1.1.7",
"vscode":"^1.1.5",
"vscodetestcover": "^1.0.2",
"mocha-multi-reporters": "^1.1.7",
"vscode": "1.1.5",
"chai": "3.5.0"
},
"dependencies": {

View File

@@ -6,23 +6,19 @@ import * as vscode from 'vscode';
import { context } from './testContext';
const path = require('path');
import * as testRunner from 'vscodetestcover';
const testRunner = require('vscode/lib/testrunner');
const suite = 'Integration Tests';
const testOptions: any = {
const options: any = {
ui: 'tdd',
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}`,
@@ -35,6 +31,6 @@ if (!vscode.workspace.getConfiguration('test')['testSetupCompleted']) {
context.RunTest = false;
}
testRunner.configure(testOptions, coverageConfig);
testRunner.configure(options);
export = testRunner;

File diff suppressed because it is too large Load Diff