Skip to content

Move the test suite helpers to Mockchain #981

@greenhat

Description

@greenhat

As we've discussed on the call, we should first explore improving the MockChain/MockChainBuilder before trying to build something on top of it. The low-hanging fruits I see here are:

  1. Moving the compile_rust_package to the miden-testing crate but using the (installed via midenup) cargo-miden binary to compile the packages. Because we would rather not introduce the compiler in the crate dependencies there and also we need to support multiple installed toolchains.
  2. Integrating an equivalent of build_existing_basic_wallet_account_builder into the MockChainBuilder.
  3. Making the note construction easier. See create_note_from_package that might be implemented in the miden-testing crate using a builder pattern.
  4. Moving (and refactoring) other generic helpers in tests/integration-network/src/mockchain/helpers.rs. to the miden-testing crate.

Originally posted by @greenhat in #896 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions