willkg / douglas

DEAD PROJECT: File based static rendering blog system
Other
2 stars 3 forks source link

clean up tests #34

Open willkg opened 10 years ago

willkg commented 10 years ago

This covers:

  1. cleaning up the test infrastructure--there's a lot of duplicate stuff in there and it needs some tlc
  2. looking at coverage statistics and finding the important things that are missing tests and writing tests for them (or writing issues to write tests for them)
willkg commented 10 years ago

Coverage statistics as of right now:

(douglas) (M=708fe douglas/ .coverage run_tests.sh) saturn2 ~/projects/douglas> nosetests --with-coverage --cover-package=douglas
...............................................................
Name                            Stmts   Miss  Cover   Missing
-------------------------------------------------------------
douglas                             1      0   100%   
douglas.app                       461    264    43%   11-12, 37-39, 59-65, 72-73, 82-85, 90, 95, 106-111, 115-132, 143-157, 162, 179-189, 191-330, 334-360, 377-385, 390-406, 409, 412, 421-428, 458, 528, 546, 548-551, 554, 564, 589, 628, 634, 640, 649-652, 655, 706, 711, 727-729, 731-734, 739, 751-755, 763-768, 790-880, 918, 923-928, 941, 966-968, 981-988, 1126, 1132, 1136-1137, 1143-1144
douglas.crashhandling              46     34    26%   23-28, 37-42, 45-54, 60-122, 135
douglas.entries                     0      0   100%   
douglas.entries.base               44      2    95%   105-106
douglas.entries.fileentry          65     11    83%   29, 37, 46, 49-50, 54-56, 65, 89, 93
douglas.memcache                   25     14    44%   38-54, 57
douglas.plugin_utils               40      8    80%   94, 102-111
douglas.plugins                     0      0   100%   
douglas.plugins.categories         65      4    94%   154-157
douglas.plugins.ignore_future      15      0   100%   
douglas.plugins.pages              97     22    77%   154, 157-164, 177-178, 181-183, 186-192, 244, 252, 258, 263, 269
douglas.plugins.paginate          143     63    56%   102-110, 128, 142-143, 166-167, 194, 203, 213-239, 245-248, 253-255, 267, 285-294, 306-335
douglas.plugins.rst_parser         29      2    93%   147-148
douglas.plugins.tags              205    104    49%   224-226, 232-233, 248-249, 251-261, 263, 271-280, 291-309, 311-325, 329-333, 338-348, 352-360, 364-368, 371-376, 379-404, 415-423, 523-524, 534-537, 544
douglas.plugins.yeararchives      111     66    41%   57-58, 63-64, 66, 80-88, 93, 104-120, 124-127, 155-166, 170-179, 183, 187-204, 216, 222-224, 230-242
douglas.renderers                   0      0   100%   
douglas.settings                   77     10    87%   7, 10, 13, 26, 30, 41, 576, 580, 593-594
douglas.tools                     276     58    79%   26-33, 50-52, 100, 208, 216-217, 270-271, 274, 276, 279-288, 306-307, 488, 506, 545, 567, 572, 577, 579, 583, 588-589, 591, 594-595, 614, 639-640, 643, 650, 659, 662, 684-691, 708, 710, 745-752
-------------------------------------------------------------
TOTAL                            1700    662    61%   
----------------------------------------------------------------------
Ran 63 tests in 0.353s

OK

Next step is to look at what's not covered that really should be covered and make sure it is covered.