solana-testing
Installation
SKILL.md
Solana Testing (Rust)
Framework Selection
| Framework | Type | Speed | Best for |
|---|---|---|---|
| LiteSVM | In-process SVM | ⚡ Fastest | Unit tests, CPI tests, account state |
| Mollusk | In-process SVM | ⚡ Fast | Single-instruction unit tests |
| Surfpool | Local cluster | 🔄 Medium | Integration tests with mainnet state |
| solana-test-validator | Full validator | 🐢 Slow | RPC behavior, WebSocket, full flow |
| bankrun (solana-program-test) | BanksClient | 🔄 Medium | Legacy, program-test compatibility |
Default choice: LiteSVM for unit tests, Surfpool for integration tests.
LiteSVM (Recommended)
Fast, in-process Solana Virtual Machine. No validator startup overhead.