[tor-bugs] #11141 [Tor Weather]: Create unit-tests for weather components

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Mar 5 21:57:53 UTC 2014

#11141: Create unit-tests for weather components
 Reporter:  baumanno         |          Owner:
     Type:  task             |         Status:  new
 Priority:  normal           |      Milestone:
Component:  Tor Weather      |        Version:
 Keywords:  weather-rewrite  |  Actual Points:
Parent ID:                   |         Points:
 In order to make current work and future integration as stable and
 seamless as possible, we should cover all code by unit-tests.

 To start with, we could begin with a test suite containing all re-written
 components and move towards full coverage once the integration is stable.

 Unless any team member has prior experience with testing Python/Django
 applications ([[https://nose.readthedocs.org/en/latest/|Nose]] looks
 promising), I suggest we stick with Python's
 [[http://docs.python.org/2/library/unittest.html|unittest]]-module for the
 following reasons:
 a) preferred way of
 [[https://docs.djangoproject.com/en/dev/topics/testing/|testing Django]]
 b) part of batteries-included Python - no extra installation necessary,
 which lends itself well to portability

 Measuring code coverage and performing CI could be possible next steps.

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

More information about the tor-bugs mailing list