Skip to content

docs(test): structured testing programme (SCF T3.4)#276

Merged
Dgetsylver merged 1 commit into
mainfrom
docs/t34-testing-programme
Jun 13, 2026
Merged

docs(test): structured testing programme (SCF T3.4)#276
Dgetsylver merged 1 commit into
mainfrom
docs/t34-testing-programme

Conversation

@Dgetsylver

Copy link
Copy Markdown
Owner

SCF #43 Tranche 3, deliverable T3.4 — structured testing programme. No dedicated GitHub issue; tracked in the grant milestones. Docs-only, based on main so it merges independently of the T3 frontend stack (#273/#274/#275).

Adds docs/testing-programme.md: a layered QA programme for a fund-handling leveraged-DeFi protocol, weighted toward the on-chain math + the TS↔Rust parity the UI quotes from.

Six layers, each with coverage / how-to-run / CI gate:

  • L0 Supply-chain — gitleaks, cargo-audit, Dependabot.
  • L1 Contract unit/integration (Rust, primary)71 tests: test_leverage.rs (43: loops, HF, partial unwind, orange_hf, rebalance, harvest split, util-cap panics), test_integration.rs (13: in-place upgrade() parity within 1e-7), vault_share/test.rs (15: SEP-41 transfer/approve/allowance/transfer_from + supply invariant).
  • L2 Rate-model parity (primary)parity.test.ts ↔ Rust rate_calc over ≥20 IR-kink fixtures.
  • L3 Frontend lint/build — Biome + Vite.
  • L4 E2E wallets — Playwright mock-seam, 5 wallets + Ledger, classic + Soroban.
  • L5 Worker — alerts typecheck + D1 migrations.
  • L6 Mainnet verification — deposit→loop→withdraw, upgrade parity, Aquarius 5-trade, broker session.

Plus a release gate checklist, known coverage gaps (property tests #50/#235 pending, fuzzing, frontend units), test-data locations, and cadence/ownership.

All claims cross-checked against the actual repo (test counts, fixture assertions, CI workflow names). No code changes.

Layered QA programme documenting all six test layers (supply-chain,
contract unit/integration, TS<->Rust rate parity, frontend lint/build,
Playwright wallet e2e, mainnet verification), what each covers, how to
run it, the CI gate that enforces it, known coverage gaps, and the
release gate that must be green before any mainnet change. References the
real artifacts: 71 contract tests, >=20 IR-kink parity fixtures, 5-wallet
+ Ledger e2e mock harness, and the six CI workflows.

SCF #43 Tranche 3 — T3.4.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying turbolong-app with  Cloudflare Pages  Cloudflare Pages

Latest commit: dad22f4
Status: ✅  Deploy successful!
Preview URL: https://8a89f32e.turbolong-app.pages.dev
Branch Preview URL: https://docs-t34-testing-programme.turbolong-app.pages.dev

View logs

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying turbolong-landing with  Cloudflare Pages  Cloudflare Pages

Latest commit: dad22f4
Status: ✅  Deploy successful!
Preview URL: https://ecb77c76.turbolong-landing.pages.dev
Branch Preview URL: https://docs-t34-testing-programme.turbolong-landing.pages.dev

View logs

@Dgetsylver Dgetsylver merged commit 73c8013 into main Jun 13, 2026
4 checks passed
@Dgetsylver Dgetsylver deleted the docs/t34-testing-programme branch June 13, 2026 16:32
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.

1 participant