Skip to content
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

Simplify verbose boilerplate builder #773

Merged
merged 13 commits into from
Oct 16, 2023
Merged

Simplify verbose boilerplate builder #773

merged 13 commits into from
Oct 16, 2023

Conversation

Reecepbcups
Copy link
Member

@Reecepbcups Reecepbcups commented Sep 12, 2023

Closes #771, #151

summary

This removes a lot of excess testing boilerplate for common setups. (Juno & PersistenceOne both use)

@Reecepbcups Reecepbcups marked this pull request as ready for review September 15, 2023 04:25
@Reecepbcups Reecepbcups requested a review from a team as a code owner September 15, 2023 04:25
@Reecepbcups Reecepbcups requested a review from misko9 September 15, 2023 04:25
@Reecepbcups Reecepbcups enabled auto-merge (squash) September 15, 2023 04:25
@Reecepbcups Reecepbcups added the BACKPORT backport into all maintained branches label Sep 16, 2023
@Reecepbcups Reecepbcups linked an issue Oct 10, 2023 that may be closed by this pull request
boojamya
boojamya previously approved these changes Oct 16, 2023
Copy link
Contributor

@boojamya boojamya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice implementation.

Maybe we want to update your gists from this PR for the removed tests?
#772

examples/cosmos/chain_export_test.go Outdated Show resolved Hide resolved
interchain_builder.go Outdated Show resolved Hide resolved
@boojamya boojamya dismissed their stale review October 16, 2023 09:56

Checking on SkipPathCreation bool.

@Reecepbcups
Copy link
Member Author

yea I had planned to get this PR in first, then merge in the removal of test after just to validate all new helper functions worked as expected

@Reecepbcups Reecepbcups merged commit 2c47fa0 into main Oct 16, 2023
9 checks passed
@Reecepbcups Reecepbcups deleted the reece/simplify branch October 16, 2023 17:36
mergify bot pushed a commit that referenced this pull request Oct 16, 2023
* qol: NewGenesisKV(key, value)

* RegisterInterfaces, CreateChainWithConfig, BuildInitialChain

* migrate examples to new functions ^^

* Add BuildChainWithRelayer abstraction

* Migrate examples to the new format

* 2 unique chainSpecs

* stop relayer on cleanup

* if links != nil, setup relayer

* stop relayer only if it was set

(cherry picked from commit 2c47fa0)

# Conflicts:
#	examples/ibc/interchain_accounts_test.go
Reecepbcups added a commit that referenced this pull request Oct 17, 2023
* Simplify verbose boilerplate builder (#773)

* qol: NewGenesisKV(key, value)

* RegisterInterfaces, CreateChainWithConfig, BuildInitialChain

* migrate examples to new functions ^^

* Add BuildChainWithRelayer abstraction

* Migrate examples to the new format

* 2 unique chainSpecs

* stop relayer on cleanup

* if links != nil, setup relayer

* stop relayer only if it was set

(cherry picked from commit 2c47fa0)

# Conflicts:
#	examples/ibc/interchain_accounts_test.go

* fix imports

* v7 imports

---------

Co-authored-by: Reece Williams <[email protected]>
Co-authored-by: Reece Williams <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BACKPORT backport into all maintained branches
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Simplify verbose boilerplate for building basic test Configuration should be less confusing.
2 participants