POC harness for writing Solidity tests in Rust using ethers-rs.
forge test
forge build
cargo test
- The usage of distributed slices to link tests can occasionally cause simple syntax errors in a test to trigger an opaque internal compiler error from rustc. If you get an error message claiming to be a bug in rustc, this is probably not the case. Runnning
cargo check --tests
rather thancargo test
can help clear things up.