-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Addons #98
Addons #98
Conversation
@webmaster128 This is the proposal of a concept of providing add-ons instead separate crates. Provided add-ons in this PR meet the needs reported e.g. here: #95, without copying and pasting the same code by test creators. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall concept looks good to me. Great docs!
Just a few small things from my side.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Prepared module named
addons
, where additional components or extensions to MultiTest will be placed.Add-ons are not required (or crucial) to use MultiTest in common testing scenarios, but provide additional functionalities, that may be used while testing CosmWasm smart contracts.
Add-ons provided in this PR:
crate::addons::MockAddressGenerator
crate::addons::MockApiBech32
crate::addons::MockApiBech32m
Please consult the source code documentation to learn more about these add-ons.
Using provided add-ons, writing tests with Bech32 addresses is now simpler, e.g.: