-
Notifications
You must be signed in to change notification settings - Fork 80
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
Finish adapting unit tests to new API #430
Conversation
Codecov ReportBase: 61.12% // Head: 60.04% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #430 +/- ##
==========================================
- Coverage 61.12% 60.04% -1.09%
==========================================
Files 131 131
Lines 18114 18777 +663
==========================================
+ Hits 11073 11275 +202
- Misses 7041 7502 +461
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
they are now covered in `recv_packet` 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 so much for this brave job! 🙌
I just noticed the assertion panic messages should to be adjusted for failure cases, I pointed this out in some places, but I’d appreciate it if you go back and take a look at them all.
Also, there are parts and codes that can be shrunk and optimized later. I was thinking we might set “testing improvements” as one of the main objectives for next quarters. WDYT?
crates/ibc/src/core/ics04_channel/handler/chan_close_confirm.rs
Outdated
Show resolved
Hide resolved
Definitely.
There are many things to improve with our tests, and since we're about to do an overhaul, I don't see to value in having "perfect" error messages on imperfect tests. Instead of "fixing" something that will be removed and greatly improved in < 3 months, I would just leave as is for now an lump that in the #429 work. |
That's fine with me. I just wanted to mention that the error messages are actually written to reflect successful scenarios, so if an assertion fails, the message will be displayed accordingly wrong. We should keep this in mind until then if a test fails during our development works. |
* remove redundant msg in test * adapt timeout test * clippy * timeout no-op case * ack validation tests * ack tests * recv_packet validation * recv_packet execute test * chan_open_init_validation * chan_open_init tests done * `chan_open_try` validate tests * chan_open_try tests * chan_open_ack tests * chan_open_confirm tests * chan_close_init tests * chan_close_confirm tests * create_client tests * update_client tests * misbehaviour tests * upgrade client tests * Remove Readers and Keepers from MockContext * remove write_ack tests they are now covered in `recv_packet` tests * adapt send_packet * changelog * fix validation msgs * fmt
Closes: #413
PR author checklist:
unclog
.docs/
).Reviewer checklist:
Files changed
in the GitHub PR explorer.