Add LiteSVM Rust tests for Anchor programs#559
Open
mikemaccana-edwardbot wants to merge 10 commits intosolana-developers:mainfrom
Open
Add LiteSVM Rust tests for Anchor programs#559mikemaccana-edwardbot wants to merge 10 commits intosolana-developers:mainfrom
mikemaccana-edwardbot wants to merge 10 commits intosolana-developers:mainfrom
Conversation
- 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).
b55d4a4 to
3aa419a
Compare
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.
This was referenced Apr 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
programs/*/tests/*.rs[dev-dependencies]forlitesvm,solana-kite,solana-signer,solana-keypair,borshtest = "cargo test"soanchor testruns LiteSVMWhat this does NOT include