-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat(cheatcodes): display warnings for deprecated cheatcodes #8883
Conversation
I would rather implement this as a hashset stored in cheatcodes struct and then reported after, it also should report the other statuses; this spams the logs as it's logged on each call |
@DaniPopes before adding support for fuzz and invariant kinds, can you ptal and lmk if that's inline with what you're thinking at 43fd48c |
597a2e3
to
62838fe
Compare
0d5f663
to
291692a
Compare
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
…-rs#8883) * feat(cheatcode): disaply message for cheatcodes marked as deprecated * Deprecated cheatcodes as hashset, displayed once per test suite * Add deprecated cheatcode replacement attr * Add support for fuzz and invariant tests * Changes after review: add Deprecated(replacement) * Update crates/cheatcodes/src/inspector.rs Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com> * chore: touchups * Fix CI --------- Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
Motivation
#[cheatcode(group = Json, status = Deprecated("keyExistsJson")]
Solution