[tor-bugs] #22733 [Metrics/metrics-lib]: use parameterized tests instead of repeated methods

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Jun 27 09:38:16 UTC 2017


#22733: use parameterized tests instead of repeated methods
-------------------------------------+--------------------------
     Reporter:  iwakeh               |      Owner:  metrics-team
         Type:  enhancement          |     Status:  new
     Priority:  Medium               |  Milestone:
    Component:  Metrics/metrics-lib  |    Version:
     Severity:  Normal               |   Keywords:
Actual Points:                       |  Parent ID:
       Points:                       |   Reviewer:
      Sponsor:                       |
-------------------------------------+--------------------------
 metrics-lib should  use parameterized tests (cf. an
 [https://gitweb.torproject.org/collector.git/tree/src/test/java/org/torproject/collector/sync/SyncPersistenceTest.java
 example in CollecTor])

 Benefits are a clear separation of API structure tests and varying data, a
 reduction of the number of test methods, which leads to easier and more
 readable test classes.  This also opens the possibility of introducing
 randomized testing (later).

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


More information about the tor-bugs mailing list