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

CLI/Tests: Remove Fixtures #6799

Merged
merged 14 commits into from
Jul 21, 2020
Merged

CLI/Tests: Remove Fixtures #6799

merged 14 commits into from
Jul 21, 2020

Conversation

alexanderbez
Copy link
Contributor

@alexanderbez alexanderbez commented Jul 20, 2020

Description

  • Remove Fixtures and auxiliary logic
  • Convert x/mint CLI tests to in-process
  • Convert x/staking CLI tests to in-process
  • Convert x/gov CLI tests to in-process

ref: #6571


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

@aaronc aaronc mentioned this pull request Jul 20, 2020
19 tasks
@codecov
Copy link

codecov bot commented Jul 20, 2020

Codecov Report

Merging #6799 into master will increase coverage by 0.19%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #6799      +/-   ##
==========================================
+ Coverage   55.60%   55.79%   +0.19%     
==========================================
  Files         457      224     -233     
  Lines       27440    14128   -13312     
==========================================
- Hits        15257     7883    -7374     
+ Misses      11083     5670    -5413     
+ Partials     1100      575     -525     

@alexanderbez alexanderbez marked this pull request as ready for review July 21, 2020 03:57
@alexanderbez alexanderbez added A:automerge Automatically merge PR once all prerequisites pass. C:CLI Type: Code Hygiene General cleanup and restructuring of code to provide clarity, flexibility, and modularity. labels Jul 21, 2020
Copy link
Contributor

@amaury1093 amaury1093 left a comment

Choose a reason for hiding this comment

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

lgtm overall 👍, this looks much cleaner

client/tx/tx.go Show resolved Hide resolved
tests/cli/grpc_query_test.go Show resolved Hide resolved
x/gov/client/cli/cli_test.go Outdated Show resolved Hide resolved
Copy link
Contributor

@amaury1093 amaury1093 left a comment

Choose a reason for hiding this comment

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

putting x to prevent automerge, see comments above

@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -e

PKGS=$(go list ./... | grep -v '/simapp' | grep -v '/cli_test')
PKGS=$(go list ./... | grep -v '/simapp')
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure this script is used at all. It is mentioned in a Makefile's target but it does not seem to be used anymore.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's used by test-cover, but that isn't used by anything. Let's remove it in a subsequent PR.

@mergify mergify bot merged commit 0ccc48d into master Jul 21, 2020
@mergify mergify bot deleted the bez/6571-remove-fixtures branch July 21, 2020 13:54
chengwenxi pushed a commit to irisnet/cosmos-sdk that referenced this pull request Jul 22, 2020
* remove fixtures

* setup tests

* update x/mint

* cli: update x/staking commands

* tests: convert x/staking CLI tests

* tests: fix x/auth CLI tests

* cli updates

* fix buiild

* fix build

* Update x/gov/client/cli/cli_test.go

Co-authored-by: Amaury Martiny <[email protected]>

* remove GenerateOrBroadcastTx

* move TestCLIQueryConn

Co-authored-by: Federico Kunze <[email protected]>
Co-authored-by: Amaury Martiny <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:automerge Automatically merge PR once all prerequisites pass. C:CLI Type: Code Hygiene General cleanup and restructuring of code to provide clarity, flexibility, and modularity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants