Skip to content

Commit b4bb1ea

Browse files
committed
Auto merge of #13520 - Muscraft:use-consistent-colors, r=weihanglo
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.
2 parents f772ec0 + 537cb3e commit b4bb1ea

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ features = [
229229
]
230230

231231
[dev-dependencies]
232+
annotate-snippets = { workspace = true, features = ["testing-colors"] }
232233
cargo-test-macro.workspace = true
233234
cargo-test-support.workspace = true
234235
same-file.workspace = true

tests/testsuite/cargo_add/invalid_manifest/stderr.term.svg

+7-7
Loading

0 commit comments

Comments
 (0)