Skip to content

Commit 952ea0f

Browse files
committed
Add instructions on how to debug tests
1 parent 6aeec13 commit 952ea0f

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

CONTRIBUTING.md

+16-1
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,27 @@ 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+
5671
## Adding a Test
5772
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.
5873

0 commit comments

Comments
 (0)