From 952ea0f82bc70ee60ba0e204b84f6c844c2cb46c Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders Date: Sat, 17 Oct 2015 11:38:55 -0700 Subject: [PATCH 1/3] 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. From 1c4a1169f2b4f449852c701127883da7b7fa4245 Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders Date: Sun, 18 Oct 2015 07:35:56 -0700 Subject: [PATCH 2/3] Add debug=true option also --- CONTRIBUTING.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a95cb4d8e33..53860e44df4 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -68,6 +68,11 @@ You can specify which browser to use for debugging. Currently Chrome and IE are 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 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. From 72d6ec0667a78e67c9c06c594ab34c262a117a68 Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders Date: Sun, 18 Oct 2015 07:39:17 -0700 Subject: [PATCH 3/3] Add missing newline after runtests/debug --- CONTRIBUTING.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 53860e44df4..51b232712e6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -73,6 +73,7 @@ You can debug with VS Code or Node instead with `jake runtests debug=true`: ```Shell jake runtests tests=2dArrays debug=true ``` + ## 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.