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. |
TimJentzsch
left a comment
There was a problem hiding this comment.
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