Skip to content

Commit 4848939

Browse files
Update 'test' task to print message describing how to run tests and delete gulp task for running tests
Since we use VS Code's infrastructure for running tests (allowing us to access VS Code objects inside tests), the right way to run tests inside VS Code is to launch the debugger with the 'Launch Tests' configuration. At the command-line, the 'npm test' command runs tests. However, that downloads a build of VS Code to run the tests, which doesn't support being launched while other instances of VS Code or open.
1 parent 1e262ce commit 4848939

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

.vscode/tasks.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
},
1212
{
1313
"taskName": "test",
14+
"command": "echo",
1415
"showOutput": "always",
16+
"isShellCommand": true,
17+
"args": ["Run tests in VS Code by launching the debugg with the 'Launch Tests' configuration."],
1518
"isTestCommand": true
1619
},
1720
{

gulpfile.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -145,18 +145,6 @@ gulp.task('package:offline', ['clean'], () => {
145145
return promise;
146146
});
147147

148-
/// Test Task
149-
gulp.task('test', () => {
150-
gulp.src('out/test/**/*.tests.js')
151-
.pipe(mocha({ ui: "tdd" }))
152-
.once('error', () => {
153-
process.exit(1);
154-
})
155-
.once('end', () => {
156-
process.exit();
157-
});
158-
});
159-
160148
/// Misc Tasks
161149
const allTypeScript = [
162150
'src/**/*.ts',

0 commit comments

Comments
 (0)