-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
A-testing-cargo-itselfArea: cargo's testsArea: cargo's testsC-cleanupCategory: cleanup within the codebaseCategory: cleanup within the codebaseCommand-fixE-easyExperience: EasyExperience: EasyP-lowPriority: LowPriority: LowS-acceptedStatus: Issue or feature is accepted, and has a team member available to help mentor or reviewStatus: Issue or feature is accepted, and has a team member available to help mentor or review
Description
Problem
When dealing with rustfix snapshot test fixes, I found it a bit cumbersome to figure out the actual failure. You need to pass RUST_LOG=parse_and_replace=info to see the log, and RUSTFIX_TEST_BLESS=test-name.rs to update snapshots.
Proposed Solution
In the main Cargo crate, we've already integrated snapbox for UI tests. We could migrate rustfix test suite to that, and maybe share some common infra, like nightly channel detection from cargo-test-macro.
Notes
ehuss has a proposal that we don't run rustc if JSON snapshot exists: #13890 (comment).
This could be a good enhancement, and I think we can leave it to follow-ups.
Metadata
Metadata
Assignees
Labels
A-testing-cargo-itselfArea: cargo's testsArea: cargo's testsC-cleanupCategory: cleanup within the codebaseCategory: cleanup within the codebaseCommand-fixE-easyExperience: EasyExperience: EasyP-lowPriority: LowPriority: LowS-acceptedStatus: Issue or feature is accepted, and has a team member available to help mentor or reviewStatus: Issue or feature is accepted, and has a team member available to help mentor or review