Skip to content

test: enforce 100% coverage #159

Closed

Description

@uniqueg

Is your feature request related to a problem? Please describe.

Show code coverage of unit tests in project documentation and ensure that
code coverage does not drop between commits.

Describe the solution you'd like

Use CodeCov to analyze and publish code coverage.
Add a badge to the project's README.md. Set up CI integration and ensure
code coverage does not drop with proposed code changes.

Describe alternatives you've considered

N/A

Additional context

See here for an example that uses code coverage with CodeCov:

Updated scope (2026-10-22, migration plan)

Why?

All FOCA-based apps aim at, and enforce, 100% test coverage (cloud-registry is the template, elixir-cloud-aai/cloud-registry#163; elixir-cloud-aai/foca#345). proTES reports no coverage.

How?

  1. Measure coverage after the test harness is in place and fill the gaps (if large, split into child issues, one per area, with this issue as the parent).
  2. [tool.coverage] in pyproject.toml with fail_under = 100, and a codecov.yml with project and patch targets of 100%.
  3. CI: coverage report and Codecov upload (failing only on pushes, as forks get no token), coverage badge in the README.

Acceptance criteria

  • Coverage is 100%, and local runs and CI fail below it.
  • Coverage is shown on Codecov and in the README.

Activity

  1. added
    type: testing
    type: ci / cd
    priority: medium
    on Oct 22, 2026
  2. changed the title [-]Report and publish code coverage[/-] [+]test: enforce 100% coverage[/+] on Oct 22, 2026
  3. added
    workload: days
    status: blocked
    on Oct 22, 2026
  4. uniqueg commented on Oct 22, 2026

    @uniqueg
    MemberAuthor

    Updated to match the other FOCA apps: coverage is enforced at 100% (fail_under and Codecov targets), as in cloud-registry. This comes after the test suite is rebuilt (#207) and the bugs found on the way are fixed (#208).

  5. added
    status: in progress
    and removed
    status: blocked
    on Oct 22, 2026
  6. removed
    status: in progress
    on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: mediumtype: ci / cdtype: testingworkload: days

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions