Closed jmsv closed 5 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%
Coverage is now 93%, maybe this can be closed now?
https://codecov.io/gh/jmsv/ety-python/tree/b59f424b05f3bfb7c1fa023348842e2404128f32/ety
ah yes, good idea - thanks!
More tests should be written to cover more internal methods etc