Demo
Several examples of JSCoverage in action are available online. For each demo, click the "Summary" tab
after the JavaScript code in the "Browser" tab has executed. See the manual
for more information.
- Simple demo
- A trivial demonstration of JSCoverage. Simply choose a number and then click the "Summary" tab.
- MochiKit test suite
- The test suite for the MochiKit library, instrumented using JSCoverage.
- jQuery test suite
- The test suite for the jQuery library, instrumented using JSCoverage.
- script.aculo.us test suite
- The test suite for the script.aculo.us library, instrumented using JSCoverage. (For this one you
will have to click the links in the left frame to run the tests.)
Inverted mode
The following are examples of running JSCoverage in "inverted mode":
for each demo, click the "Coverage report" button after the JavaScript
code on the page has executed.
- Simple inverted mode demo
- A trivial demonstration JSCoverage in "inverted mode".
Choose a number and then click the "Coverage report" button.
- Simple JsUnit demo
- A trivial demonstration of using JSCoverage with JsUnit. Once the
JsUnit unit tests have run, click the "Coverage report" button.
- JsUnit test suite
- JsUnit's own test suite, instrumented using JSCoverage. (Note: some versions of Safari seem to have trouble with the tests in the latest version of JsUnit.)