Code Coverage#

  • Code coverage is measured using coverage.py.

  • Coverage reports are generated in HTML format and can be found in the htmlcov directory after running tests.

  • Coverage thresholds are set in the .coveragerc file.

  • Coverage reports are integrated into the CI pipeline.

  • Coverage badges are displayed in the README file.

  • Coverage is checked for all modules, including tests and examples.

  • Coverage is run as part of the pytest command with the --cov option.

  • Code coverage is monitored over time using Codecov.