BIND 10 #191: Implement a initial version of stats
BIND 10 Development
do-not-reply at isc.org
Fri Aug 20 05:12:37 UTC 2010
#191: Implement a initial version of stats
-----------------------------+----------------------------------------------
Reporter: naokikambe | Owner: naokikambe
Type: task | Status: reviewing
Priority: major | Milestone: y2 6 month milestone
Component: statistics | Resolution:
Keywords: | Sensitive: 0
Estimatedhours: 0.0 | Hours:
Billable: 0 | Totalhours:
Internal: 0 |
-----------------------------+----------------------------------------------
Comment(by naokikambe):
Jinmei-san,
Thank you for your comments. Fist, can I ask you a basic way to evaluate
coverage?
Replying to [comment:4 jinmei]:
> - from a quick run of unittests, the test coverage is not good. When I
run b10-stats_test.py, the coverage report says only 32% of stats.py are
covered.
In my environment, it reports 76% in stats.py. I actually evaluated the
coverage like following. Could you tell me differences from what you did
if there are? I also attached [attachment:stats.py,cover].
I'll answer your other comments soon.
Thanks,
{{{
[kambe at covm tests]$ coverage help
Coverage.py, version 3.3.1
Measure, collect, and report on code coverage in Python programs.
usage: coverage <command> [options] [args]
Commands:
annotate Annotate source files with execution information.
combine Combine a number of data files.
erase Erase previously collected coverage data.
help Get help on using coverage.py.
html Create an HTML report.
report Report coverage stats on modules.
run Run a Python program and measure code execution.
xml Create an XML report of coverage results.
Use "coverage help <command>" for detailed help on any command.
Use "coverage help classic" for help on older command syntax.
For more information, see http://nedbatchelder.com/code/coverage
[kambe at covm tests]$ pwd
/home/kambe/svn/bind10.isc.org/svn/bind10/branches/trac191/src/bin/stats/tests
[kambe at covm tests]$ coverage erase
[kambe at covm tests]$ env PYTHONPATH=../../../lib/python:.. coverage run
./b10-stats_test.py
........[Stats] Error requesting configuration: just an error
....
----------------------------------------------------------------------
Ran 12 tests in 0.178s
OK
[kambe at covm tests]$ coverage report -m
Name
Stmts Exec Cover Missing
--------------------------------------------------------------------------------------------------------------------------------------------
/home/kambe/svn/bind10.isc.org/svn/bind10/branches/trac191/src/bin/stats/stats
230 176 76% 35, 46-47, 50-52, 68, 84-87, 120, 178-179, 209-213,
233, 242, 257, 266-272, 278, 296, 312, 331, 349, 358, 368, 370, 378, 387,
403-420, 423
<...snip...>
[kambe at covm tests]$ coverage annotate ../stats_stub.py
[kambe at covm tests]$
}}}
--
Ticket URL: <http://bind10.isc.org/ticket/191#comment:7>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list