Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/buffalojoec/protosol
Protobuf Solana program test harness
https://github.com/buffalojoec/protosol
Last synced: 27 days ago
JSON representation
Protobuf Solana program test harness
- Host: GitHub
- URL: https://github.com/buffalojoec/protosol
- Owner: buffalojoec
- Created: 2024-02-29T20:38:10.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-03-05T21:30:00.000Z (8 months ago)
- Last Synced: 2024-04-15T16:03:55.838Z (7 months ago)
- Language: Rust
- Size: 139 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ProtoSol
A Protobuf fuzzing & testing harness for Solana programs.
## Testing Programs
There are two ways to test a Solana program with Protosol: integration testing
and fuzzing.To integration test a Solana program, add `protosol` as a dev-dependency, then
create some fixtures and run them within test cases using `process_fixture`.```
cargo test
```To fuzz a Solana program, create one or more fuzz targets similar to the
examples in the [`fuzz` directory](./fuzz/). Then run the fuzzer on your
targets.```
cargo fuzz
```## Crate Tests
```
./test
``````
./fuzz-test
```