closeio / closeio-api

Python API Client for Close
http://developer.close.com/
MIT License
65 stars 47 forks source link

Add code coverage reporting #116

Closed lightswitch05 closed 1 year ago

lightswitch05 commented 1 year ago

Why

In this PR I add code coverage reporting. I find it helpful to see code coverage results when writing tests and reviewing PRs. I thought this addition might be useful for the library.

What

Testing

  1. ensure to pip install the new requirements
  2. Run pytest
    • Tests should pass and show a terminal report of the code coverage for each file
    • There should be a .reports folder with the HTML version of the coverage report, as well as a xml version
---------- coverage: platform darwin, python 3.11.3-final-0 ----------
Name                      Stmts   Miss Branch BrPart  Cover
-----------------------------------------------------------
closeio_api/__init__.py     111     22     39      7    75%
closeio_api/utils.py          3      0      0      0   100%
-----------------------------------------------------------
TOTAL                       114     22     39      7    76%
Coverage HTML written to dir .reports/htmlcov
Coverage XML written to file .reports/coverage.xml