Skip to content

Commit

Permalink
Remove redundant comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes committed May 18, 2020
1 parent 105d329 commit a28d8c5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions src/test/runTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
7 changes: 0 additions & 7 deletions src/test/suite/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,18 @@ import * as Mocha from 'mocha'
import * as glob from 'glob'

export function run(): Promise<void> {
// 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.`))
Expand Down

0 comments on commit a28d8c5

Please sign in to comment.