JSCoverage
code coverage for JavaScript

Bug #6 - Should "Total" line in "Summary" tab display weighted coverage percentage?

Submitted by: Ed
Date submitted: 2008-12-12 06:15:47 UTC
Status: Closed
Currently the percent coverage in the "Summary" tab "Total" line is an
unweighted average of all JavaScript files being measured.  Should it be a
weighted average, i.e., simply total executed statements as a percentage of
total statements?
Submitted by: liucougar
Date submitted: 2009-02-28 06:44:27 UTC
the attached patch changes the total coverage to 
total executed/total statements

In addition, the patch changes how missing lines are displayed: if contiguous
missing lines will be displayed as something like 10-25 (from line 10 to line 25).

(the patch is against svn r431)
Attachment: 6.patch
Submitted by: liucougar
Date submitted: 2009-03-01 04:19:49 UTC
new patch which fixes a bug in the original patch
Attachment: 6.patch
Submitted by: Roman N
Date submitted: 2009-04-11 05:45:53 UTC
Any news on whether these patches have been accepted by the original author for 
the next release?
Submitted by: Ed
Date submitted: 2009-04-13 03:08:57 UTC
This has been committed to the Subversion repository.
Submitted by: Ed
Date submitted: 2010-04-26 01:35:24 UTC
This patch is now included in version 0.5.  This bug is being closed; if there
are any further problems please submit a new bug.

Add a comment

Your name:
Your email address (optional - will never be displayed):
Comment:
Attachment (optional - maximum 64 KiB):
Copyright © 2008 Silicon Forks siliconforks.com
siliconforks@siliconforks.com