[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs