Skip to content

feat: add coverage configuration and update CI test script for coverage and artifacts - #16

Open
Grayknife wants to merge 1 commit into
mainfrom
feat/add-coverage
Open

Grayknife wants to merge 1 commit into
mainfrom
feat/add-coverage

Conversation

@Grayknife

Copy link
Copy Markdown
Collaborator

No description provided.

@Grayknife
Grayknife requested review from OrbisK and coronoro and a balanced review from Copilot November 25, 2026 12:37

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The CI job’s regex fails to extract 100% coverage, and failed tests stop report generation, leaving coverage artifacts unavailable.

2 open issues
What changed in this PR

Adds coverage measurement and reporting to the Django project template, integrating coverage results and downloadable reports into GitLab CI.

Changes:

  • Adds the coverage development dependency and configures branch measurement, exclusions, and report outputs.
  • Updates CI to run tests under coverage and generate terminal, XML, and HTML reports.
  • Configures GitLab coverage extraction, report artifacts, and cache cleanup.
File Description
django/​{{ cookiecutter.project_slug }}/​pyproject.toml Adds the coverage dependency and measurement and reporting settings.
django/​{{ cookiecutter.project_slug }}/​.gitlab/​ci/​test.gitlab-ci.yml Integrates coverage commands, GitLab reporting, artifacts, and cache cleanup.

Review effort: Balanced

Comment on lines +14 to +18
- uv run coverage run manage.py test --no-input --keepdb --timing --buffer
- uv run coverage combine
- uv run coverage report
- uv run coverage xml
- uv run coverage html
- uv run coverage report
- uv run coverage xml
- uv run coverage html
coverage: '/TOTAL.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?)\%$/'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Grayknife kannst du das prüfen?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants