Manta-Network / Manta

The main repo for manta blockchain nodes.
GNU General Public License v3.0
240 stars 119 forks source link

Fuzzing for XCM & Integration Tests #647

Open ghzlatarev opened 2 years ago

ghzlatarev commented 2 years ago

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

Garandor commented 2 years ago

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

Dengjianping commented 1 year ago

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 commented 1 year ago

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