]> granicus.if.org Git - libevent/commitdiff
note new unit test framework.
authorNick Mathewson <nickm@torproject.org>
Fri, 17 Apr 2009 06:58:04 +0000 (06:58 +0000)
committerNick Mathewson <nickm@torproject.org>
Fri, 17 Apr 2009 06:58:04 +0000 (06:58 +0000)
svn:r1191

whatsnew-2.0.txt

index 91960ae78d7d473c78812fe30983b5a04dd65da5..28e3d78f71d3d2d447956553127be24acd98b78c 100644 (file)
@@ -421,5 +421,23 @@ What's New In Libevent 2.0 so far:
 
    TODO(nickm) writeme
 
+7. Infrastructure improvements
 
+7.1. Better unit test framework
 
+   We now use a unit test framework that Nick wrote called "tinytest".
+   The main benefit from Libevent's point of view is that tests which
+   might mess with global state can all run each in their own
+   subprocess.  This way, when there's a bug that makes one unit test
+   crash or mess up global state, it doesn't affect any others.
+
+7.2. Better unit tests
+
+   Despite all the code we've added, our unit tests are much better
+   than before.  Right now, iterating over the different backends on
+   my MacBook, I'm getting around 75% test coverage, compared with
+   less than 45% test coverage in Libevent 1.4.
+
+   (Right now, evdns.c has the worst test coverage of any significant
+   module, at 57%.  If we exclude it from consideration, we're at 80%
+   test coverage, which is fairly good for a networking library.)