nucypher / zerodb

*This project is no longer actively maintained. If you'd like to become the maintainer, please let us know.* ZeroDB is an end-to-end encrypted database. Data can be stored and queried on untrusted database servers without ever exposing the encryption key. Clients can execute remote queries against the encrypted data without downloading all of it or suffering an excessive performance hit.
GNU Affero General Public License v3.0
1.56k stars 102 forks source link

use coverage.py with pytest in tox #19

Closed xueyumusic closed 8 years ago

xueyumusic commented 8 years ago

Coverage.py could be used to test the coverage rate of tests, and show the lines which are not covered. It also integrates well with pytest and tox. For example, current run shows the coverage is 72%

...
zerodb/trees/OOBTree.py                  17      0      0      0   100%
zerodb/trees/__init__.py                 13      0      0      0   100%
zerodb/util/__init__.py                   0      0      0      0   100%
zerodb/util/debug.py                      9      0      2      1    91%   13->-13
zerodb/util/iter.py                     102      7     42      5    90%   33-36, 56, 132-135, 21->-19, 27->33, 54->56, 128->138, 129->132
zerodb/util/thread_watcher.py            32      7      2      1    76%   37, 42-47, 25->-24
---------------------------------------------------------------------------------
TOTAL                                  1771    415    539     95    72%