--- trunk/doc/faq.html 2007/08/22 18:45:28 40 +++ trunk/doc/faq.html 2007/08/22 18:46:11 41 @@ -13,35 +13,6 @@
- It is necessary to run JSCoverage in inverted mode. You will have to - modify JsUnit to launch JSCoverage. -
- -
- See the directory doc/example-jsunit
for an example. It
- contains a copy of JsUnit version 2.2alpha11, with the file
- jsunit/app/main-data.html
slightly modified to add a button
- which launches JSCoverage. It also contains a simple unit test file test.html
. You
- can instrument this example as follows:
-
-jscoverage --no-instrument=jsunit doc/example-jsunit doc/instrumented-jsunit -- -
- You can then run the test.html
file in JsUnit's jsunit/testRunner.html
.
- The simplest way to do this is probably to copy the contents of doc/instrumented-jsunit
- to the root of a web server and then access the URL
-
-http://127.0.0.1/jsunit/testRunner.html?testPage=http://127.0.0.1/test.html&autorun=true --
file:///C:/foo/bar/jscoverage.html?foo/bar.html
and I'm getting all kinds of JavaScript errors.- See the discussion here for more information. + See this discussion for more information.
+ It is necessary to run JSCoverage in inverted mode. You will have to + modify JsUnit to launch JSCoverage. +
+ +
+ See the directory doc/example-jsunit
for an example. It
+ contains a copy of JsUnit version 2.2alpha11, with the file
+ jsunit/app/main-data.html
slightly modified to add a button
+ which launches JSCoverage. It also contains a simple unit test file test.html
. You
+ can instrument this example as follows:
+
+jscoverage --no-instrument=jsunit doc/example-jsunit doc/instrumented-jsunit ++ +
+ You can then run the test.html
file in JsUnit's jsunit/testRunner.html
.
+ The simplest way to do this is probably to copy the contents of doc/instrumented-jsunit
+ to the root of a web server and then access the URL
+
+http://127.0.0.1/jsunit/testRunner.html?testPage=http://127.0.0.1/test.html&autorun=true ++ +
+ After the test suite has been run, click on the "Coverage report" button + to get a coverage report. +
+