Skip to content

Add LiteSVM Rust tests for Anchor programs#559

Open
mikemaccana-edwardbot wants to merge 10 commits intosolana-developers:mainfrom
mikemaccana:litesvm-tests
Open

Add LiteSVM Rust tests for Anchor programs#559
mikemaccana-edwardbot wants to merge 10 commits intosolana-developers:mainfrom
mikemaccana:litesvm-tests

Conversation

@mikemaccana-edwardbot
Copy link
Copy Markdown
Contributor

@mikemaccana-edwardbot mikemaccana-edwardbot commented Apr 12, 2026

Based on #558 (Anchor 1.0.0 stable upgrade). No other dependencies.

What this adds

Rust integration tests using LiteSVM and solana-kite for all 46 Anchor programs.

Changes

  • 46 new Rust test files in programs/*/tests/*.rs
  • 46 Cargo.toml updated with [dev-dependencies] for litesvm, solana-kite, solana-signer, solana-keypair, borsh
  • 45 Anchor.toml updated: test = "cargo test" so anchor test runs LiteSVM
  • All existing TypeScript tests preserved — not deleted, available for reference

What this does NOT include

mikemaccana and others added 10 commits April 10, 2026 15:24
- Update anchor-lang and anchor-spl to 1.0.0 in all Cargo.toml files
- Update @anchor-lang/core to 1.0.0 in all package.json files
- Remove stale RC pin comments from Cargo.toml files
- Update .reference/ANCHOR-1.0-MIGRATION.md to reflect stable release
- Keep all existing tests unchanged (no LiteSVM additions)
Adds Rust integration tests using LiteSVM and solana-kite for all 46 Anchor
programs. These run via anchor test → cargo test.

Existing TypeScript tests preserved — this PR only adds the Rust test files,
updates Cargo.toml dev-dependencies, and changes the Anchor.toml test script.

Based on anchor-10-existing-tests (solana-developers#558).
mikemaccana-edwardbot added a commit to mikemaccana/program-examples that referenced this pull request Apr 12, 2026
Removes per-project TypeScript test files, package.json, tsconfig.json,
and pnpm-lock.yaml from all Anchor example directories. These are
superseded by Rust LiteSVM tests (PR solana-developers#559).

97 test files, 47 package.json, 48 tsconfig.json, 47 pnpm-lock.yaml removed.
239 files total, 96,320 lines deleted.
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