From 952ea0f82bc70ee60ba0e204b84f6c844c2cb46c Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders Date: Sat, 17 Oct 2015 11:38:55 -0700 Subject: [PATCH] Add instructions on how to debug tests --- CONTRIBUTING.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c2865280f44..a95cb4d8e33 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -47,12 +47,27 @@ e.g. to run all compiler baseline tests: 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 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 +``` + ## 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.