jmsv / ety-python

A Python module to discover the etymology of words
http://ety-python.rtfd.io
MIT License
144 stars 18 forks source link

Better test coverage needed #14

Closed jmsv closed 5 years ago

jmsv commented 6 years ago

More tests should be written to cover more internal methods etc

alxwrd commented 6 years ago

nedbat/coveragepy looks good to help with identifying areas that are untested.

$ coverage run --source . tests.py
$ coverage report -d coverage_report
$ firefox coverage_report/index.html
Name                   Stmts   Miss  Cover
------------------------------------------
ety/__init__.py           41      2    95%
ety/__main__.py            2      2     0%
ety/census.py             28      2    93%
ety/data/__init__.py      13      0   100%
ety/data/generate.py      77     77     0%
ety/language.py           13      4    69%
ety/tree.py               29      6    79%
ety/word.py               47      7    85%
setup.py                   7      7     0%
tests.py                 103      1    99%
------------------------------------------
TOTAL                    360    108    70%
hugovk commented 5 years ago

Coverage is now 93%, maybe this can be closed now?

image

https://codecov.io/gh/jmsv/ety-python/tree/b59f424b05f3bfb7c1fa023348842e2404128f32/ety

jmsv commented 5 years ago

ah yes, good idea - thanks!