recall_fendermint_testing

Crates.iorecall_fendermint_testing
lib.rsrecall_fendermint_testing
version0.1.2
sourcesrc
created_at2025-04-02 14:19:15.092513+00
updated_at2025-04-07 18:12:39.414468+00
descriptionTesting utilities
homepage
repositoryhttps://github.com/recallnet/ipc
max_upload_size
id1616580
size118,735
(recall-packages)

documentation

README

Testing

The fendermint_testing crate (ie. the current directory) provides some reusable utilities that can be imported into other tests. These are behind feature flags:

  • golden: helper functions for writing tests with golden files

  • arb: provides quickcheck::Arbitrary instances for some things which are problematic in the FVM library, such as Address and TokenAmount.

  • smt: small framework for State Machine Testing (a.k.a. Model Testing)

End to end tests

Beyond this, for no other reason than code organisation, the directory has sub-projects, which contain actual tests.

For example the smoke-test is a a crate that uses cargo make to start a local stack with Tendermint and Fendermint running in Docker, and run some integration tests, which can be found in the Makefile.toml.

To run these, either cd into that directory and run them from there, or run all from the root using make e2e, which also builds the docker images.

Commit count: 0

cargo fmt