Manta icon indicating copy to clipboard operation
Manta copied to clipboard

Fuzzing for XCM & Integration Tests

Open ghzlatarev opened this issue 3 years ago • 3 comments

Adding a degree of randomization in Manta's testing can be beneficial to catch more bugs. Use manta-pay's test randomization as reference.

ghzlatarev avatar Jul 06 '22 07:07 ghzlatarev

Check out what Brandon did in manta-pay pallet ( manual randomization, no framework )

Garandor avatar Jul 14 '22 14:07 Garandor

Maybe we can try this tool https://github.com/rust-fuzz/cargo-fuzz Seems it's a solid tool which is being used by like wasmtime. And lots of bugs are found by it: https://github.com/rust-fuzz/trophy-case

Here's the doc: https://rust-fuzz.github.io/book/introduction.html

There's another alternative for fuzzing test: https://crates.io/crates/honggfuzz

Dengjianping avatar Sep 14 '22 02:09 Dengjianping

And seems substrate has some ideas on fuzzing test. https://github.com/paritytech/polkadot-sdk/issues/251

Dengjianping avatar Sep 19 '22 08:09 Dengjianping