Skip to content

Test coverage: gate + nightly live tests for devnet/mainnet/mesa (#181)#199

Open
dkijania wants to merge 1 commit into
mainfrom
test/coverage-and-live-networks
Open

Test coverage: gate + nightly live tests for devnet/mainnet/mesa (#181)#199
dkijania wants to merge 1 commit into
mainfrom
test/coverage-and-live-networks

Conversation

@dkijania

Copy link
Copy Markdown
Contributor

What & why

Part of the production-readiness epic (#163). Closes #181.

Two gaps from the test-coverage audit: no coverage threshold in CI, and no live integration tests against real per-network data (devnet existed only as a static dump; mainnet was a single skipped endpoint; mesa had none).

Changes

  • Coverage gatetest:coverage now runs c8 with --check-coverage --lines 50 --functions 50 --statements 50 --branches 80. Current coverage (~53% lines, 95% branches) clears it; the floor blocks regressions and can be raised as the suite grows (this epic adds ~10 test files).
  • test:live-api script — runs the live-api suite against STAGING_GRAPHQL_ENDPOINT.
  • Live Integration workflow — nightly + manual; runs live-api against devnet/mainnet/mesa using per-network repo variables (DEVNET_/MAINNET_/MESA_ARCHIVE_API_URL). A network with no configured endpoint is skipped, so the job is green until the maintainer sets the URLs; fail-fast: false keeps networks independent.
  • Docs — live-api README documents the setup and the remaining fixture work.

Honest remaining work (documented, not silently skipped)

  • The maintainer must set the *_ARCHIVE_API_URL repo variables for the nightly runs to actually exercise each network.
  • actions.test.ts is still a placeholder and a successful-zkappCommands fixture is still needed — both require known mainnet/mesa zkApps to snapshot against. Noted in the README.

Testing

  • npm run test:coverage → passes the gate locally (exit 0)
  • npm run lint / npx prettier --debug-check . — clean
  • Unit suite green

🤖 Generated with Claude Code

…mesa

Two gaps from the test-coverage audit (#181): no coverage threshold in CI, and
no live integration tests against real per-network data (devnet existed only as
a static dump; mainnet was one skipped endpoint; mesa had none).

- Add a coverage gate to `test:coverage` via c8 `--check-coverage` (lines 50,
  functions 50, statements 50, branches 80). Current coverage (~53% lines, 95%
  branches) clears it; the floor blocks regressions and rises as the suite grows.
- Add a `test:live-api` script that runs the live-api suite against
  `STAGING_GRAPHQL_ENDPOINT`.
- Add the `Live Integration` workflow: nightly + manual, runs the live-api suite
  against devnet/mainnet/mesa using per-network repo variables
  (`*_ARCHIVE_API_URL`), skipping any network without a configured endpoint so it
  stays green until they're set. `fail-fast: false` keeps networks independent.
- Document the setup and the remaining `actions`/successful-`zkappCommands`
  fixture work in the live-api README.

Closes #181.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSuak9smCHbp4N17xjjLF6
@dkijania dkijania added enhancement New feature or request production-readiness Work toward making the API production-ready / publicly available labels Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request production-readiness Work toward making the API production-ready / publicly available

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test coverage: audit + add live integration tests for devnet / mainnet / mesa

1 participant