OzYossarian / Kandel

GNU General Public License v3.0
5 stars 1 forks source link

Add code coverage to tox #58

Closed peter-janderks closed 2 years ago

peter-janderks commented 2 years ago

Added code coverage to tox it will run automatically similair to the pytest test. To run locally use: coverage run -m pytest tests/ followed by: coverage html --fail-under=63 this creates a html file that can be opened with a browser.

peter-janderks commented 2 years ago

I went down a bit of a rabbit hole but learned a lot. This video was the most helpful resource: https://www.youtube.com/watch?v=DhUpxWjOhME&t=1279s

In general, when I'm coding locally I just run pytest and only run tox just before I'm about to push.

peter-janderks commented 2 years ago

I forgot to tag issue #49 in the branch name, will do next time.