39 |
option) has the advantage of being able to store coverage reports to the filesystem. |
option) has the advantage of being able to store coverage reports to the filesystem. |
40 |
</p> |
</p> |
41 |
|
|
42 |
<h2>Installing JSCoverage</h2> |
<h2>Compiling JSCoverage</h2> |
43 |
|
|
44 |
<p> |
<p> |
45 |
You can compile JSCoverage on GNU/Linux or Microsoft Windows, using GCC. On |
You can compile JSCoverage on GNU/Linux or Microsoft Windows, using GCC. On |
325 |
<dd>Display the version of the program. |
<dd>Display the version of the program. |
326 |
<dt><code>-v</code>, <code>--verbose</code> |
<dt><code>-v</code>, <code>--verbose</code> |
327 |
<dd>Explain what is being done. |
<dd>Explain what is being done. |
328 |
|
<dt><code>--encoding=<var>ENCODING</var></code> |
329 |
|
<dd>Assume that all JavaScript files use the given character encoding. The |
330 |
|
default is ISO-8859-1. |
331 |
<dt><code>--exclude=<var>PATH</var></code> |
<dt><code>--exclude=<var>PATH</var></code> |
332 |
<dd>The command |
<dd>The command |
333 |
<pre> |
<pre> |
338 |
<var>PATH</var> must be a complete path relative to <var>SOURCE-DIRECTORY</var>. |
<var>PATH</var> must be a complete path relative to <var>SOURCE-DIRECTORY</var>. |
339 |
<var>PATH</var> can be a file or a directory (in which case the directory and |
<var>PATH</var> can be a file or a directory (in which case the directory and |
340 |
its entire contents are skipped). This option may be given multiple times. |
its entire contents are skipped). This option may be given multiple times. |
341 |
|
<dt><code>--no-highlight</code> |
342 |
|
<dd>Do not perform syntax highlighting of JavaScript code. |
343 |
<dt><code>--no-instrument=<var>PATH</var></code> |
<dt><code>--no-instrument=<var>PATH</var></code> |
344 |
<dd>The command |
<dd>The command |
345 |
<pre> |
<pre> |
463 |
<dt><code>--document-root=<var>PATH</var></code> |
<dt><code>--document-root=<var>PATH</var></code> |
464 |
<dd>Serve web content from the directory given by <var>PATH</var>. The default is |
<dd>Serve web content from the directory given by <var>PATH</var>. The default is |
465 |
the current directory. This option may not be given with the <code>--proxy</code> option. |
the current directory. This option may not be given with the <code>--proxy</code> option. |
466 |
|
<dt><code>--encoding=<var>ENCODING</var></code> |
467 |
|
<dd>Assume that all JavaScript files use the given character encoding. The |
468 |
|
default is ISO-8859-1. Note that if you use the <code>--proxy</code> option, the |
469 |
|
character encoding will be determined from the <code>charset</code> parameter in |
470 |
|
the <code>Content-Type</code> HTTP header. |
471 |
<dt><code>--ip-address=<var>ADDRESS</var></code> |
<dt><code>--ip-address=<var>ADDRESS</var></code> |
472 |
<dd>Run the server on the IP address given by <var>ADDRESS</var>. The default is <code>127.0.0.1</code>. Specify |
<dd>Run the server on the IP address given by <var>ADDRESS</var>. The default is <code>127.0.0.1</code>. Specify |
473 |
<code>0.0.0.0</code> to use any address. |
<code>0.0.0.0</code> to use any address. |
474 |
|
<dt><code>--no-highlight</code> |
475 |
|
<dd>Do not perform syntax highlighting of JavaScript code. |
476 |
<dt><code>--no-instrument=<var>URL</var></code> |
<dt><code>--no-instrument=<var>URL</var></code> |
477 |
<dd>Do not instrument JavaScript code from <var>URL</var>. If you are running <code>jscoverage-server</code> |
<dd>Do not instrument JavaScript code from <var>URL</var>. If you are running <code>jscoverage-server</code> |
478 |
with the <code>--proxy</code> option, <var>URL</var> should be a full URL. For example: |
with the <code>--proxy</code> option, <var>URL</var> should be a full URL. For example: |