[tor-bugs] #1825 [Tor Relay]: Add unit tests for statistics code

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Thu Aug 12 09:56:56 UTC 2010


#1825: Add unit tests for statistics code
-----------------------+----------------------------------------------------
 Reporter:  karsten    |       Owner:     
     Type:  defect     |      Status:  new
 Priority:  normal     |   Milestone:     
Component:  Tor Relay  |     Version:     
 Keywords:             |      Parent:     
-----------------------+----------------------------------------------------
 We still lack unit tests for most of the statistics code in Tor. The
 recent changes in the course of allowing *Statistics options to be enabled
 or disabled while Tor is running are a first step in writing good unit
 tests. We should further refactor the statistics code, e.g., so that it
 doesn't depend on get_options() and separates generating statistics output
 from writing it to disk.

 Branch stats-tests in my public repository has the refactorings and unit
 tests for exit port statistics.

 I'd like to know if the refactorings are correct and if the tests make
 sense. If so, let's merge these, and I'll do the same for the other
 statistics code.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/1825>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list