Add coverage reporting to CI #277

Closed
opened 2026-06-25 04:00:53 -04:00 by didericis-codex · 0 comments
Collaborator

Add Python coverage reporting to the existing unittest-based CI.

Background:

  • The repo already uses stdlib unittest discovery.
  • coverage.py works directly with unittest, including branch coverage and HTML/XML/LCOV/JSON reports.
  • Unit and integration tests are already split by directory, and integration tests skip cleanly when Docker is unavailable.

Recommended scope:

  • Add coverage.py as a dev-only dependency.
  • Run unit tests under coverage in CI.
  • Keep integration tests optional or separate so missing Docker does not block coverage collection.
  • Prefer branch coverage and a text summary; HTML artifacts are a nice-to-have.

Acceptance criteria:

  • CI produces a coverage report for bot_bottle code.
  • The existing unittest workflow continues to pass.
  • Coverage does not require migrating the test suite to pytest.
Add Python coverage reporting to the existing unittest-based CI. Background: - The repo already uses stdlib unittest discovery. - coverage.py works directly with unittest, including branch coverage and HTML/XML/LCOV/JSON reports. - Unit and integration tests are already split by directory, and integration tests skip cleanly when Docker is unavailable. Recommended scope: - Add coverage.py as a dev-only dependency. - Run unit tests under coverage in CI. - Keep integration tests optional or separate so missing Docker does not block coverage collection. - Prefer branch coverage and a text summary; HTML artifacts are a nice-to-have. Acceptance criteria: - CI produces a coverage report for bot_bottle code. - The existing unittest workflow continues to pass. - Coverage does not require migrating the test suite to pytest.
didericis added the Kind/Testing
Priority
Low
4
labels 2026-06-25 04:01:29 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: didericis/bot-bottle#277