18 |
<p> |
<p> |
19 |
<dfn>Code coverage</dfn> statistics show which lines of a program have |
<dfn>Code coverage</dfn> statistics show which lines of a program have |
20 |
been executed (and which have been missed). This information is useful |
been executed (and which have been missed). This information is useful |
21 |
for constructing comprehensive test suites (for which it is often called |
for constructing comprehensive test suites (hence, it is often called |
22 |
<dfn>test coverage</dfn>). |
<dfn>test coverage</dfn>). |
23 |
</p> |
</p> |
24 |
<p> |
<p> |
27 |
JavaScript code is executed in a web browser. |
JavaScript code is executed in a web browser. |
28 |
</p> |
</p> |
29 |
<p> |
<p> |
30 |
|
JSCoverage supports the complete language syntax described in the |
31 |
|
<cite>ECMAScript Language Specification</cite> (ECMA-262, 3rd edition). |
32 |
JSCoverage works with any modern standards-compliant web browser - |
JSCoverage works with any modern standards-compliant web browser - |
33 |
including Internet Explorer (IE 6 and IE 7), Firefox (FF 2 and FF 3), Opera, and Safari |
including Internet Explorer (IE 6 and IE 7), Firefox (FF 2 and FF 3), |
34 |
- on Windows and Linux. |
Opera, Safari, and Google Chrome - on Microsoft Windows and GNU/Linux. |
35 |
</p> |
</p> |
36 |
<p> |
<p> |
37 |
JSCoverage is free software, distributed under the |
JSCoverage is free software, distributed under the |
38 |
<a href="license.html">GNU General Public License</a>. |
<a href="license.html">GNU General Public License version 2</a>. |
39 |
|
</p> |
40 |
|
|
41 |
|
<h2>Latest News <a href="http://siliconforks.com/jscoverage/news.xml" type="application/rss+xml" title="RSS feed for JSCoverage"><img src="feed-icon-14x14.png" alt="RSS feed"></a></h2> |
42 |
|
|
43 |
|
<h3><a name="20081211">December 11, 2008 - JSCoverage 0.4</a></h3> |
44 |
|
<p> |
45 |
|
JSCoverage 0.4 is available for <a href="http://siliconforks.com/jscoverage/download.html">download</a>. |
46 |
|
</p> |
47 |
|
<p> |
48 |
|
This release includes many new features: |
49 |
|
</p> |
50 |
|
<ul class="list"> |
51 |
|
<li> |
52 |
|
The new <code>jscoverage-server</code> program is provided as an |
53 |
|
alternative to the <code>jscoverage</code> program. The |
54 |
|
<code>jscoverage-server</code> program is a simple HTTP server which |
55 |
|
instruments JavaScript code as it is served; this allows you to execute |
56 |
|
JavaScript and gather code coverage statistics without a preliminary |
57 |
|
step of creating instrumented code. The <code>jscoverage-server</code> |
58 |
|
program can either serve files directly from the filesystem or run as a |
59 |
|
proxy server (with the <code>--proxy</code> option), instrumenting |
60 |
|
JavaScript provided by another web server. |
61 |
|
<li> |
62 |
|
Using <code>jscoverage-server</code>, coverage reports can now be stored |
63 |
|
to the filesystem. |
64 |
|
</li> |
65 |
|
<li> |
66 |
|
JSCoverage now recognizes special JavaScript comments which specify that |
67 |
|
certain lines of code should be ignored in coverage reports. |
68 |
|
</li> |
69 |
|
<li> |
70 |
|
The new <code>--encoding</code> option provides better support for |
71 |
|
different character encodings. |
72 |
|
</li> |
73 |
|
<li> |
74 |
|
The JSCoverage user interface is now faster and more responsive. |
75 |
|
</li> |
76 |
|
<li> |
77 |
|
The new <code>--no-highlight</code> option can be used to disable syntax |
78 |
|
highlighting (giving better performance for large JavaScript files). |
79 |
|
</li> |
80 |
|
<li> |
81 |
|
The build system has been modified so that <code>make install</code> |
82 |
|
only installs the <code>jscoverage</code> and |
83 |
|
<code>jscoverage-server</code> executables and their manual pages. |
84 |
|
(Previous versions installed SpiderMonkey library and executable files, |
85 |
|
which could conflict with other versions of SpiderMonkey installed on |
86 |
|
your system.) |
87 |
|
</li> |
88 |
|
<li> |
89 |
|
JSCoverage now supports several features beyond those found in the |
90 |
|
<cite>ECMAScript Language Specification</cite>, including the following: |
91 |
|
<ul class="list"> |
92 |
|
<li>getters and setters |
93 |
|
<li><code>for each</code> loops |
94 |
|
<li>generators and iterators |
95 |
|
<li>the <code>let</code> keyword |
96 |
|
<li>destructuring assignment |
97 |
|
<li>array comprehensions |
98 |
|
<li>expression closures |
99 |
|
<li>generator expressions |
100 |
|
</ul> |
101 |
|
Use the new <code>--js-version</code> option to enable these features. |
102 |
|
</li> |
103 |
|
</ul> |
104 |
|
<p> |
105 |
|
The GCC C++ compiler (<code>g++</code>) is now required to compile |
106 |
|
JSCoverage. (Previously, only the C compiler was needed.) |
107 |
|
</p> |
108 |
|
<p> |
109 |
|
Please report any bugs you find using the new <a href="http://siliconforks.com/jscoverage/bugs/">bug tracker</a>. |
110 |
|
</p> |
111 |
|
|
112 |
|
<h3><a name="20080331">March 31, 2008 - JSCoverage and Firefox 3</a></h3> |
113 |
|
<p> |
114 |
|
The <a href="faq.html">JSCoverage FAQ</a> has been updated to address problems using JSCoverage with Firefox 3. |
115 |
|
</p> |
116 |
|
|
117 |
|
<h3><a name="20080324">March 24, 2008 - JSCoverage in Debian GNU/Linux</a></h3> |
118 |
|
<p> |
119 |
|
JSCoverage is now <a href="http://packages.debian.org/sid/jscoverage">available</a> in the Debian unstable distribution. |
120 |
|
</p> |
121 |
|
|
122 |
|
<p> |
123 |
|
<a href="news.html">All news items...</a> |
124 |
</p> |
</p> |
125 |
</div> |
</div> |
126 |
</div> |
</div> |
135 |
<li><a href="help.html">Help</a> |
<li><a href="help.html">Help</a> |
136 |
<li><a href="license.html">License</a> |
<li><a href="license.html">License</a> |
137 |
<li><a href="links.html">Links</a> |
<li><a href="links.html">Links</a> |
138 |
|
<li><a href="users.html">Users</a> |
139 |
|
<li><a href="http://siliconforks.com/jscoverage/bugs/">Bug tracker</a> |
140 |
</ul> |
</ul> |
141 |
</div> |
</div> |
142 |
</div> |
</div> |
143 |
<div id="ft"> |
<div id="ft"> |
144 |
<address> |
<address> |
145 |
Copyright © 2007, 2008 <a href="http://siliconforks.com/"><img src="http://siliconforks.com/siliconforks-16x16.png" width="16" height="16" class="icon" alt="Silicon Forks"></a> <a href="http://siliconforks.com/">siliconforks.com</a><br> |
Copyright © 2007, 2008 <a href="http://siliconforks.com/"><img src="siliconforks-16x16.png" width="16" height="16" class="icon" alt="Silicon Forks"></a> <a href="http://siliconforks.com/">siliconforks.com</a><br> |
|
Last updated September 4, 2007<br> |
|
146 |
<a href="mailto:jscoverage@siliconforks.com">jscoverage@siliconforks.com</a> |
<a href="mailto:jscoverage@siliconforks.com">jscoverage@siliconforks.com</a> |
147 |
</address> |
</address> |
148 |
</div> |
</div> |