[tor-bugs] #7821 [Stem]: Look into code coverage more
    Tor Bug Tracker & Wiki 
    blackhole at torproject.org
       
    Sat Dec 29 19:59:12 UTC 2012
    
    
  
#7821: Look into code coverage more
---------------------+------------------------------------------------------
 Reporter:  atagar   |          Owner:  atagar
     Type:  task     |         Status:  new   
 Priority:  normal   |      Milestone:        
Component:  Stem     |        Version:        
 Keywords:  testing  |         Parent:        
   Points:           |   Actualpoints:        
---------------------+------------------------------------------------------
 Stem has quite a bit of tests but I haven't personally run a code coverage
 tool to figure out what we're missing. Sean had a suggestion on this...
 {{{
 http://nedbatchelder.com/code/coverage/
 http://pypi.python.org/pypi/coverage
 I've used this on three projects (not counting Stem) and it helps
 check that written tests are reaching all the dark crevices of one's
 code.  If you have questions, I'm happy to help. Once installed, do:
 1) coverage run --parallel-mode --branch --omit="test*" ./run_tests.py
 -u -i -t RUN_NONE (or some variation)
 2) coverage combine
 3) coverage html
 4) read the nice reports in the htmlcov/ directory
 }}}
-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/7821>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
    
    
More information about the tor-bugs
mailing list