ignite / cli

Ignite is a CLI tool and hub designed for constructing Proof of Stake Blockchains rooted in Cosmos-SDK
https://ignite.com
Other
1.26k stars 549 forks source link

feat(test/mock): generate cosmos-sdk mock modules #2433

Open Pantani opened 2 years ago

Pantani commented 2 years ago

create a make or script command to fetch the cosmos-sdk and auto-generate the mocks for a module

eg:

make generate-sdk-mock ARGS="staking,bank"
or
./scripts/generate-sdk-mock staking,bank

This command should clone the cosmos-sdk repo and run the mockery into the module folder.

This can be useful if the module updates or we need to add support to mock a new module.

Pantani commented 2 years ago

also we should have a command to generate SPN mocks as well

make generate-spn-mock ARGS="profile,campaign"
or
./scripts/generate-spn-mock campaign,launch