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

refactor: use chaintestutil for integration test setup #46

Merged
merged 63 commits into from
Dec 12, 2023

Conversation

aljo242
Copy link
Collaborator

@aljo242 aljo242 commented Dec 6, 2023

Factor out most logic found in testutils to new package: chaintestutil.

NOTE: testing will fail because a local version of chaintestutil is being used as the repo is currently private

test-unit and test-integration run locally

@aljo242 aljo242 marked this pull request as draft December 6, 2023 14:51
@aljo242 aljo242 changed the base branch from main to test/integration-keeper December 6, 2023 15:11
BankKeeper bankkeeper.Keeper
DistrKeeper distrkeeper.Keeper
StakingKeeper *stakingkeeper.Keeper
testkeeper.TestKeepers
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

My general idea here is for you to create your own TestKeepers struct which extends the "base" testkeepers chaintestutil gives you (bank, auth, distr, staking, etc).

So, here, we are just extending it with the feemarket keeper

@aljo242 aljo242 marked this pull request as ready for review December 7, 2023 16:29
Base automatically changed from test/integration-keeper to main December 7, 2023 16:53
Copy link
Contributor

@Eric-Warehime Eric-Warehime left a comment

Choose a reason for hiding this comment

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

LGTM

@aljo242 aljo242 merged commit 206525e into main Dec 12, 2023
2 of 4 checks passed
@aljo242 aljo242 deleted the refactor/chaintestutil branch December 12, 2023 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants