Skip to content

tests: increase coverage - #10

Merged
paulmueller merged 5 commits into
DCOR-dev:masterfrom
paulmueller-agent:coverage-tests
Nov 4, 2026
Merged

paulmueller merged 5 commits into
DCOR-dev:masterfrom
paulmueller-agent:coverage-tests

Conversation

@paulmueller-agent

@paulmueller-agent paulmueller-agent commented Nov 4, 2026 •

Copy link
Copy Markdown

Brings test coverage from 84 % to 95 % (pytest-cov in CI, including test files; Codecov reports 94.63 %) and restores Codecov reporting.

Codecov

  • The upload step was lost when testing moved from Vagrant to Docker (Replace vagrant-based testing with docker-based testing #5), so the badge still showed 80.85 % from 2024.
  • New step codecov/codecov-action@v5 uploads coverage.xml, flagged develop/pypi. It runs tokenless, like DCOR-Aid.
  • The ckan/ckan-dev container has neither curl nor gpg, which the action requires, so they are installed with apt-get first.
  • pytest now also prints --cov-report=term-missing in the log.

Tests (simple ones)

  • test_meta.py: special-case labels, medium alias, modules list, units
  • test_plugin.py: can_view, get_commands, template variables and template name
  • test_cli.py: run-jobs-dc-view --modified-days 1 --force on one dataset

🤖 Generated with Claude Code

Paul Müller and others added 3 commits November 4, 2026 16:56
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 4, 2026

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@paulmueller-agent
paulmueller-agent marked this pull request as ready for review November 4, 2026 17:41
@paulmueller
paulmueller merged commit 4e10709 into DCOR-dev:master Nov 4, 2026
5 checks passed
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.

2 participants