Skip to content

Commit e98d8c3

Browse files
a-tarasyuksandersn
authored andcommitted
remove unused 'debug' option. change 'jake runtests' description (#28226)
1 parent 1c45903 commit e98d8c3

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,10 @@ You can specify which browser to use for debugging. Currently Chrome and IE are
137137
jake runtests-browser tests=2dArrays browser=chrome
138138
```
139139

140-
You can debug with VS Code or Node instead with `jake runtests debug=true`:
140+
You can debug with VS Code or Node instead with `jake runtests inspect=true`:
141141

142142
```Shell
143-
jake runtests tests=2dArrays debug=true
143+
jake runtests tests=2dArrays inspect=true
144144
```
145145

146146
## Adding a Test
@@ -153,7 +153,7 @@ The supported names and values are the same as those supported in the compiler i
153153
They are useful for tests relating to modules.
154154
See below for examples.
155155

156-
**Note** that if you have a test corresponding to a specific spec compliance item, you can place it in `tests\cases\conformance` in an appropriately-named subfolder.
156+
**Note** that if you have a test corresponding to a specific spec compliance item, you can place it in `tests\cases\conformance` in an appropriately-named subfolder.
157157
**Note** that filenames here must be distinct from all other compiler testcase names, so you may have to work a bit to find a unique name if it's something common.
158158

159159
### Tests for multiple files

Gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const exec = require("./scripts/build/exec");
2626
const browserify = require("./scripts/build/browserify");
2727
const prepend = require("./scripts/build/prepend");
2828
const { removeSourceMaps } = require("./scripts/build/sourcemaps");
29-
const { CancellationTokenSource, CancelError, delay, Semaphore } = require("prex");
29+
const { CancellationTokenSource, CancelError, delay, Semaphore } = require("prex");
3030
const { libraryTargets, generateLibs } = require("./scripts/build/lib");
3131
const { runConsoleTests, cleanTestDirs, writeTestConfigFile, refBaseline, localBaseline, refRwcBaseline, localRwcBaseline } = require("./scripts/build/tests");
3232

Jakefile.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,14 @@ task(TaskNames.local, [
147147
task("default", [TaskNames.local]);
148148

149149
const RunTestsPrereqs = [TaskNames.lib, Paths.servicesDefinitionFile, Paths.typescriptDefinitionFile, Paths.tsserverLibraryDefinitionFile];
150-
desc("Runs all the tests in parallel using the built run.js file. Optional arguments are: t[ests]=category1|category2|... d[ebug]=true.");
150+
desc("Runs all the tests in parallel using the built run.js file. Optional arguments are: t[ests]=category1|category2|... i[nspect]=true.");
151151
task(TaskNames.runtestsParallel, RunTestsPrereqs, function () {
152152
tsbuild([ConfigFileFor.runjs], true, () => {
153153
runConsoleTests("min", /*parallel*/ true);
154154
});
155155
}, { async: true });
156156

157-
desc("Runs all the tests in parallel using the built run.js file. Optional arguments are: t[ests]=category1|category2|... d[ebug]=true.");
157+
desc("Runs all the tests in parallel using the built run.js file. Optional arguments are: t[ests]=category1|category2|... i[nspect]=true.");
158158
task(TaskNames.runtests, RunTestsPrereqs, function () {
159159
tsbuild([ConfigFileFor.runjs], true, () => {
160160
runConsoleTests('mocha-fivemat-progress-reporter', /*runInParallel*/ false);
@@ -520,7 +520,6 @@ function runConsoleTests(defaultReporter, runInParallel) {
520520
}
521521

522522
let testTimeout = process.env.timeout || defaultTestTimeout;
523-
const debug = process.env.debug || process.env["debug-brk"] || process.env.d;
524523
const inspect = process.env.inspect || process.env["inspect-brk"] || process.env.i;
525524
const runners = process.env.runners || process.env.runner || process.env.ru;
526525
const tests = process.env.test || process.env.tests || process.env.t;

0 commit comments

Comments
 (0)