-
Notifications
You must be signed in to change notification settings - Fork 9
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
Implement UI testing framework #125
Conversation
CI is failing due to multiple In the past I fixed this by calling Looks like |
I opened a thread in the Rust Zulip, so hopefully someone gets back to me on how to solve this issue. I fear I may have to either add |
I'm going to split off the actual UI tests into a separate PR, to make review of this one a bit more digestible. The one UI test that I did add is a proof of concept, and will probably be modified when the rest of the tests are created. |
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.
Exciting stuff! I have a few clarifying questions, but it looks good already
Also add `#[serde(borrow)]` annotations, since they were missing.
One unfortunate part of UI tests is that they aren't automatically formatted by |
Thanks for the review! :) |
Part of #31. This is a continuation of #125 that actually adds UI tests for all of the current lints. It was split off to make #125 easier to review. To test this, run: ```bash cargo test -p bevy_lint --test ui ``` To bless changes, run: ```bash cargo test -p bevy_lint --test ui -- --bless ``` There are a few additional options available if you replace `--bless` with `--help`, too.
Closes #31. Previously attempted in #32. Rebased off of #124, so blocked until that is merged.
This PR implements UI tests: special programs that check lint diagnostics. UI tests can be used to ensure that a lint functions correctly, and handles all edge cases.
This has been a long time in the making, but I'm so happy that it finally works! :D