Skip to content

Commit

Permalink
Auto merge of #13520 - Muscraft:use-consistent-colors, r=weihanglo
Browse files Browse the repository at this point in the history
feat: Use consistent colors when testing

In cargo#13461, it was [noted that `annotate-snippets`](#13461 (comment)) made testing hard as it outputs platform specific colors. To fix this I created [annotate-snippets-rs#82](rust-lang/annotate-snippets-rs#82), which added a feature to make the output platform agnostic when enabled. This makes it so glob syntax does not need to be used when matching colored output.
  • Loading branch information
bors committed Mar 2, 2024
2 parents f772ec0 + 537cb3e commit b4bb1ea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ features = [
]

[dev-dependencies]
annotate-snippets = { workspace = true, features = ["testing-colors"] }
cargo-test-macro.workspace = true
cargo-test-support.workspace = true
same-file.workspace = true
Expand Down
14 changes: 7 additions & 7 deletions tests/testsuite/cargo_add/invalid_manifest/stderr.term.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b4bb1ea

Please sign in to comment.