Unit Tests¶
Unit tests are performed using PyTest.
Code coverage is reported by Coverage.
Both reports are collated during when Sphinx documentation is built.
Unit Test Results¶
To run the unit tests:
pytest -v tests --cov=employees
To generate a HTML report with coverage run:
pytest -v --html=cover/report.html --cov=employees tests
Report Unit Tests
Unit Test Coverage¶
To generate a report on test coverage:
pytest -v --cov=helloworld tests
coverage html -d cover helloworld/helloworld.py
Report Test Coverage