code-base-investigator icon indicating copy to clipboard operation
code-base-investigator copied to clipboard

Increase test coverage

Open Pennycook opened this issue 1 year ago • 3 comments

Our test coverage is currently only around 89%, which may be hiding some bugs.

A simple way to compute coverage statistics:

python -m coverage run -m unittest
python -m coverage report

Pennycook avatar Jan 26 '24 15:01 Pennycook

Should probably consider adding a coverage badge as well?

laserkelvin avatar Jan 26 '24 16:01 laserkelvin

Should probably consider adding a coverage badge as well?

Yes, good idea. It would be good to have this as part of the CI.

Pennycook avatar Jan 26 '24 19:01 Pennycook

As part of this issue, we should also refactor bin/codebasin so that the functionality can be tested by unittest.

Pennycook avatar Mar 06 '24 19:03 Pennycook