Merge pull request #5307 from Microsoft/add-debug-instructions-to-contributing
Add instructions on how to debug tests to CONTRIBUTING.md
This commit is contained in:
commit
0b580c4754
|
@ -47,12 +47,33 @@ e.g. to run all compiler baseline tests:
|
||||||
jake runtests tests=compiler
|
jake runtests tests=compiler
|
||||||
```
|
```
|
||||||
|
|
||||||
or to run specifc test: `tests\cases\compiler\2dArrays.ts`
|
or to run a specific test: `tests\cases\compiler\2dArrays.ts`
|
||||||
|
|
||||||
```Shell
|
```Shell
|
||||||
jake runtests tests=2dArrays
|
jake runtests tests=2dArrays
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Debugging the tests
|
||||||
|
|
||||||
|
To debug the tests, invoke the runtests-browser using jake.
|
||||||
|
You will probably only want to debug one test at a time:
|
||||||
|
|
||||||
|
```Shell
|
||||||
|
jake runtests-browser tests=2dArrays
|
||||||
|
```
|
||||||
|
|
||||||
|
You can specify which browser to use for debugging. Currently Chrome and IE are supported:
|
||||||
|
|
||||||
|
```Shell
|
||||||
|
jake runtests-browser tests=2dArrays browser=chrome
|
||||||
|
```
|
||||||
|
|
||||||
|
You can debug with VS Code or Node instead with `jake runtests debug=true`:
|
||||||
|
|
||||||
|
```Shell
|
||||||
|
jake runtests tests=2dArrays debug=true
|
||||||
|
```
|
||||||
|
|
||||||
## Adding a Test
|
## Adding a Test
|
||||||
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.
|
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.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue