Skip to content

[Infra] Code coverage gate for the contract test suite #34

Open

Description

@Gbangbolaoluwagbemiga

Goal

Track and enforce contract test coverage so the suite (#1) does not silently rot.

What needs to be done

  • Add cargo llvm-cov to CI and generate an lcov/HTML report
  • Upload the report as a CI artifact (and optionally to Codecov with a badge)
  • Add a minimum threshold gate (start realistic, e.g. 70%, ratchet up over time)
  • Document how to run coverage locally

Acceptance criteria

  • Coverage report generated on every PR
  • CI fails below the threshold
  • Coverage badge in README (optional)

Relevant files

.github/workflows/node.yml, Cargo.toml

Depends on #1 and #25.

Activity

  1. changed the title [-]Code coverage gate[/-] [+][Infra] Code coverage gate for the contract test suite[/+] on Jun 17, 2026
  2. rupesh-kumar-sah commented on Oct 7, 2026

    @rupesh-kumar-sah

    Hi team,

    Happy to tackle this. Here is how I plan to implement it:

    Plan:

    1. Audit storage layout and state invariants ensuring strict auth guards.
    2. Implement deterministic state transitions with safe checked arithmetic.
    3. Add hermetic unit and regression tests covering authorized, unauthorized, and boundary edge cases.
    4. Profile instruction and CPU/gas limits under Soroban host environment.

    Please assign this to me if the plan looks good. Thanks!

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

    infraCI/CD, builds, toolingtestingTests and coverage

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions