LiteSVM is a lightweight library for testing Solana programs that works by creating an in-process Solana VM optimized for program developers. Unlike other testing approaches that spin up separate validator processes, LiteSVM embeds the VM inside your tests, making them execute much faster. In a further break from tradition, it has an ergonomic API with sane defaults and extensive configurability for those who want it.
Getting Started
Getting Started
Install LiteSVM and write your first tests.
Why LiteSVM
Learn why you would want to use LiteSVM for testing.
Rust
Testing Your Program
Learn how to test your own Solana program.
Examples
Copy-paste solutions for common scenarios and full repository examples.
API Reference
Learn advanced features and custom configurations.
Additional Crates
Helper crates for utils, SPL tokens, the loader, and Anchor testing.
TypeScript
Getting Started
Use LiteSVM through @solana/kit in your TypeScript tests.
Token Testing
Test SPL tokens with the tokenProgram() plugin.
API Reference
Learn advanced features and custom configurations.
Examples
Copy-paste solutions for common scenarios.
Resources
Is this page helpful?