Solana glossary / Fuzz testing

Fuzz testing

Definition

Automated testing that sends a program large numbers of random or generated inputs and instruction sequences to find crashes and broken invariants that hand-written tests miss.

Why it matters

Fuzzing explores input combinations that nobody thought to write a test for, so it is a good complement to an audit and to unit tests. A team that already fuzzes its program gives auditors a head start and usually has fewer findings.

What to check

How it works in practice

A fuzz test generates random sequences of instructions with random arguments and accounts, runs them against the program and checks invariants after each step, for example that a vault balance equals the sum of deposits.

When a run breaks an invariant, the tool saves the input so the team can replay it, fix the bug and keep the case as a regression test.

Common mistakes

Related terms

Guides

Describe your project in plain English. Smart Match suggests verified Solana providers with a reason for each match. Free for teams.

Get matched →

← All Solana terms