-
Notifications
You must be signed in to change notification settings - Fork 563
test(service/network): introduce unit testing tooling #2235
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
Conversation
Deploying with
|
Latest commit: |
a468abd
|
Status: | ✅ Deploy successful! |
Preview URL: | https://1aa67719.ignite-docs.pages.dev |
Hey @ivanovpetr, what's the status on this, is it ready for reviews? (we merged cosmosaccount change recently. |
Let's also resolve the conflicts. 👍 |
Conflicts: ignite/cmd/network.go ignite/pkg/cosmosclient/cosmosclient.go ignite/services/network/campaign.go ignite/services/network/join.go ignite/services/network/join_test.go ignite/services/network/launch.go ignite/services/network/launch_test.go ignite/services/network/mocks/account_info.go ignite/services/network/mocks/campaign_client.go ignite/services/network/mocks/chain.go ignite/services/network/mocks/cosmos_client.go ignite/services/network/mocks/launch_client.go ignite/services/network/mocks/profile_client.go ignite/services/network/mocks/reward_client.go ignite/services/network/network.go ignite/services/network/publish.go ignite/services/network/publish_test.go ignite/services/network/queries.go ignite/services/network/request.go ignite/services/network/testutil/account.go ignite/services/network/testutil/chain.go ignite/services/network/testutil/genesis.go ignite/services/network/testutil/gentx.go ignite/services/network/testutil/mocks.go ignite/services/network/testutil/response.go ignite/services/network/testutil/suite.go
Enhancements to do in this PR
|
Looks very good! |
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.
👏 - cannot wait us to merge this!
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.
🍻
* implement unit testing tooling for the network package * implement unit testing tooling for the network package * tests for Publish function * tests for Join function * refactor test accounts * revert accidental testada rename * refactor tests * rename starport to ignite * add tests fo SetReward * add tests fo RevertLaunch * add review fixes * add review fixes * simplify Network constructor Co-authored-by: Petr Ivanov <petr.ivanov@tendermint.com> Co-authored-by: İlker G. Öztürk <ilkergoktugozturk@gmail.com>
This PR introduces test utils for testing network package. The main novations are.
As an example of application of these tools I introduce tests for launch function of network package. Would like to hear as much feedback as possible prior writing other tests.