Skip to content

Commit 0b580c4

Browse files
committed
Merge pull request microsoft#5307 from Microsoft/add-debug-instructions-to-contributing
Add instructions on how to debug tests to CONTRIBUTING.md
2 parents 6aeec13 + 72d6ec0 commit 0b580c4

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

CONTRIBUTING.md

+22-1
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,33 @@ e.g. to run all compiler baseline tests:
4747
jake runtests tests=compiler
4848
```
4949

50-
or to run specifc test: `tests\cases\compiler\2dArrays.ts`
50+
or to run a specific test: `tests\cases\compiler\2dArrays.ts`
5151

5252
```Shell
5353
jake runtests tests=2dArrays
5454
```
5555

56+
## Debugging the tests
57+
58+
To debug the tests, invoke the runtests-browser using jake.
59+
You will probably only want to debug one test at a time:
60+
61+
```Shell
62+
jake runtests-browser tests=2dArrays
63+
```
64+
65+
You can specify which browser to use for debugging. Currently Chrome and IE are supported:
66+
67+
```Shell
68+
jake runtests-browser tests=2dArrays browser=chrome
69+
```
70+
71+
You can debug with VS Code or Node instead with `jake runtests debug=true`:
72+
73+
```Shell
74+
jake runtests tests=2dArrays debug=true
75+
```
76+
5677
## Adding a Test
5778
To add a new testcase, simply place a `.ts` file in `tests\cases\compiler` containing code that exemplifies the bugfix or change you are making.
5879

0 commit comments

Comments
 (0)