-
Notifications
You must be signed in to change notification settings - Fork 597
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
docs: adding README.md for how to write e2e tests #1769
docs: adding README.md for how to write e2e tests #1769
Conversation
…s-how-to-write-e2e-tests
…s-how-to-write-e2e-tests
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.
Thank you, thank you, thank you! I really appreciate all the work you've been doing to push forward the e2e tests and I really love the touch of adding a readme ❤️
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.
Agree with all of @colin-axner's comments! Thank you so much for such a detailed guide. All of the work on e2e is extremely valuable and at an extremely high standard! I'm looking forward to working with it! ❤️
I think we have being trying to adhere to the google style guide in many of our docs and READMEs across the repo. The main thing that comes to mind is sentences for titles. E.g. "How To Write Tests" -> "How to write tests". cc. @crodriguezvega
t.Run("broadcast multi message transaction", func(t *testing.T){ | ||
payPacketFeeMsg := feetypes.NewMsgPayPacketFee(testFee, channelA.PortID, channelA.ChannelID, chainAWallet.Bech32Address(chainA.Config().Bech32Prefix), nil) | ||
transferMsg := transfertypes.NewMsgTransfer(channelA.PortID, channelA.ChannelID, transferAmount, chainAWallet.Bech32Address(chainA.Config().Bech32Prefix), chainBWallet.Bech32Address(chainB.Config().Bech32Prefix), clienttypes.NewHeight(1, 1000), 0) | ||
resp, err := s.BroadcastMessages(ctx, chainA, chainAWallet, payPacketFeeMsg, transferMsg) |
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.
Love this, super clean API!
e2e/README.md
Outdated
|
||
It is possible to send an IBC transfer in two ways. | ||
|
||
Use the ibctest Chain interface (this ultimately does a docker exec) |
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.
Use the ibctest Chain interface (this ultimately does a docker exec) | |
Use the ibctest `Chain` interface (this ultimately does a docker exec) |
e2e/README.md
Outdated
### How tests are run | ||
|
||
The tests use the `matrix` feature of Github Actions. The matrix is | ||
dynamically generated using [this script](https://github.com/cosmos/ibc-go/blob/main/.github/scripts/build_test_matrix.go). |
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.
dynamically generated using [this script](https://github.com/cosmos/ibc-go/blob/main/.github/scripts/build_test_matrix.go). | |
dynamically generated using [this command](https://github.com/cosmos/ibc-go/blob/main/cmd//build_test_matrix/main.go). |
@damiannolan @colin-axner in the rich preview the reference links seem broken, but if you go to |
…s-how-to-write-e2e-tests
Description
closes: #1683
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.
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerCodecov Report
in the comment section below once CI passes