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: move x/{moduleName}/test{ModuleName} to x/{moduleName}/testutil #13427

Merged
merged 6 commits into from
Oct 2, 2022

Conversation

julienrbrt
Copy link
Member

@julienrbrt julienrbrt commented Sep 30, 2022

Description

Closes: #XXXX

Noticed that while doing #13420. It makes no sense to have two testing packages.


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • included the correct type prefix in the PR title
  • added ! to the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • followed the guidelines for building modules
  • included the necessary unit and integration tests
  • added a changelog entry to CHANGELOG.md
  • included comments for documenting Go code
  • updated the relevant documentation or specification
  • reviewed "Files changed" and left comments if necessary
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed ! in the type prefix if API or client breaking change
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic
  • reviewed API design and naming
  • reviewed documentation is accurate
  • reviewed tests and test coverage
  • manually tested (if applicable)

@@ -138,9 +138,6 @@ func (suite *IntegrationTestSuite) SetupTest() {
suite.ctx = app.BaseApp.NewContext(false, tmproto.Header{Time: time.Now()})
suite.fetchStoreKey = app.UnsafeFindStoreKey

// suite.Require().NoError(suite.accountKeeper.SetParams(suite.ctx, authtypes.DefaultParams()))
suite.Require().NoError(suite.bankKeeper.SetParams(suite.ctx, types.DefaultParams()))
Copy link
Member Author

Choose a reason for hiding this comment

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

We don't need to set params here, given that we use an app.

Copy link
Member

@aaronc aaronc left a comment

Choose a reason for hiding this comment

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

We can give the package a different name to make auto imports easier

@codecov
Copy link

codecov bot commented Oct 1, 2022

Codecov Report

Merging #13427 (55865e4) into main (c221d7f) will decrease coverage by 0.13%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #13427      +/-   ##
==========================================
- Coverage   54.12%   53.98%   -0.14%     
==========================================
  Files         645      641       -4     
  Lines       55276    55017     -259     
==========================================
- Hits        29917    29701     -216     
+ Misses      22963    22931      -32     
+ Partials     2396     2385      -11     
Impacted Files Coverage Δ
x/group/keeper/keeper.go 56.25% <0.00%> (-0.40%) ⬇️
errors/stacktrace.go
errors/abci.go
errors/handle.go
errors/errors.go
crypto/keys/internal/ecdsa/privkey.go 83.01% <0.00%> (+1.88%) ⬆️

@julienrbrt julienrbrt requested a review from tac0turtle October 2, 2022 13:34
Copy link
Member

@aaronc aaronc left a comment

Choose a reason for hiding this comment

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

I kind of thought testslashing, etc was a good naming improvement when it happened (although I was resistant at first) but since it's not consistent and to avoid bike shedding we can go with this.

This should be refactor! because it's breaking.

@julienrbrt julienrbrt merged commit 80ce491 into main Oct 2, 2022
@julienrbrt julienrbrt deleted the julien/tests branch October 2, 2022 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants