17 releases (10 stable)
2.2.4 | Nov 18, 2024 |
---|---|
2.1.0 | Sep 19, 2024 |
2.0.1 | May 13, 2024 |
1.0.1 | May 14, 2024 |
0.16.7 | Dec 15, 2023 |
#2 in #multi-contract
5,580 downloads per month
Used in 64 crates
(3 directly)
570KB
13K
SLoC
CosmWasm MultiTest
Testing tools for multi-contract interactions
Introduction
CosmWasm MultiTest is a suite of testing tools designed for facilitating multi-contract interactions within the CosmWasm ecosystem. Its primary focus is on providing developers with a robust framework for simulating complex contract interactions and bank operations.
Library Capabilities
CosmWasm MultiTest enables comprehensive unit testing, including scenarios where contracts call other contracts and interact with several modules like bank and staking. Its current implementation effectively handles these interactions, providing a realistic testing environment for contract developers. The team is committed to extending CosmWasm MultiTest's capabilities, making it a versatile tool for various blockchain interaction tests.
Feature flags
CosmWasm MultiTest library provides several feature flags that can be enabled like shown below:
[dev-dependencies]
cw-multi-test = { version = "2", features = ["staking", "stargate", "cosmwasm_2_1"] }
Since version 2.1.0, CosmWasm MultiTest has no default features enabled. The table below summarizes all available features:
Feature | Description |
---|---|
backtrace | Enables backtrace feature in anyhow dependency. |
staking | Enables staking feature in cosmwasm-std dependency. |
stargate | Enables stargate feature in cosmwasm-std dependency. |
cosmwasm_1_1 | Enables cosmwasm_1_1 feature in cosmwasm-std dependency. |
cosmwasm_1_2 | Enables cosmwasm_1_1 in MultiTest and cosmwasm_1_2 feature in cosmwasm-std dependency. |
cosmwasm_1_3 | Enables cosmwasm_1_2 in MultiTest and cosmwasm_1_3 feature in cosmwasm-std dependency. |
cosmwasm_1_4 | Enables cosmwasm_1_3 in MultiTest and cosmwasm_1_4 feature in cosmwasm-std dependency. |
cosmwasm_2_0 | Enables cosmwasm_1_4 in MultiTest and cosmwasm_2_0 feature in cosmwasm-std dependency. |
cosmwasm_2_1 | Enables cosmwasm_2_0 in MultiTest and cosmwasm_2_1 feature in cosmwasm-std dependency. |
Conclusion
CosmWasm MultiTest stands as a vital development tool in the CosmWasm ecosystem, especially for developers engaged in building complex decentralized applications. As the framework evolves, it is poised to become an even more integral part of the CosmWasm development toolkit. Users are encouraged to stay updated with its progress and contribute to its development.
License
Licensed under Apache License, Version 2.0 (see LICENSE and NOTICE).
Any contribution intentionally submitted for inclusion in this crate by you, shall be licensed as above, without any additional terms or conditions.
Dependencies
~6–14MB
~193K SLoC