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

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



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