test: add support for seeded rng (#3270)

This commit is contained in:
Bjerg
2023-06-21 23:35:28 +02:00
committed by GitHub
parent 938b979703
commit dc74fad816
23 changed files with 323 additions and 175 deletions

View File

@ -94,10 +94,21 @@ cargo test --workspace
# With Geth
cargo test --workspace --features geth-tests
# With Ethereum Foundation tests
#
# Note: Requires cloning https://github.com/ethereum/tests
#
# cd testing/ef-tests && git clone https://github.com/ethereum/tests ethereum-tests
cargo test --workspace --features ef-tests
```
We recommend using [`cargo nextest`](https://nexte.st/) to speed up testing. With nextest installed, simply substitute `cargo test` with `cargo nextest run`.
> **Note**
>
> Some tests use random number generators to generate test data. If you want to use a deterministic seed, you can set the `SEED` environment variable.
## Getting Help
If you have any questions, first see if the answer to your question can be found in the [book][book].