From a28d8c553d3376bf95290bf1941ceb7b2b1ed349 Mon Sep 17 00:00:00 2001 From: Twixes Date: Mon, 18 May 2020 22:32:36 +0200 Subject: [PATCH] Remove redundant comments --- src/test/runTest.ts | 7 ------- src/test/suite/index.ts | 7 ------- 2 files changed, 14 deletions(-) diff --git a/src/test/runTest.ts b/src/test/runTest.ts index 02a5895..202bfb4 100644 --- a/src/test/runTest.ts +++ b/src/test/runTest.ts @@ -4,15 +4,8 @@ import { runTests } from 'vscode-test' async function main() { try { - // The folder containing the Extension Manifest package.json - // Passed to `--extensionDevelopmentPath` const extensionDevelopmentPath = path.resolve(__dirname, '../../') - - // The path to test runner - // Passed to --extensionTestsPath const extensionTestsPath = path.resolve(__dirname, './suite/index') - - // Download VS Code, unzip it and run the integration test await runTests({ extensionDevelopmentPath, extensionTestsPath }) } catch (err) { console.error('Failed to run tests') diff --git a/src/test/suite/index.ts b/src/test/suite/index.ts index 8b69c7d..b4e38ed 100644 --- a/src/test/suite/index.ts +++ b/src/test/suite/index.ts @@ -3,25 +3,18 @@ import * as Mocha from 'mocha' import * as glob from 'glob' export function run(): Promise { - // Create the mocha test const mocha = new Mocha({ ui: 'tdd', color: true }) - const testsRoot = path.resolve(__dirname, '..') - return new Promise((c, e) => { glob('**/**.test.js', { cwd: testsRoot }, (err, files) => { if (err) { return e(err) } - - // Add files to the test suite files.forEach(f => mocha.addFile(path.resolve(testsRoot, f))) - try { - // Run the mocha test mocha.run(failures => { if (failures > 0) { e(new Error(`${failures} tests failed.`))