mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00

This uses a new feature from snapbox that let's us render terminal styling in SVG files. This let's us see / visualize ANSI escape codes, including in github's UI (will render images, including side-by-side images for diffs).
15 lines
330 B
Rust
15 lines
330 B
Rust
use cargo_test_support::file;
|
|
use cargo_test_support::prelude::*;
|
|
use cargo_test_support::str;
|
|
|
|
#[cargo_test]
|
|
fn case() {
|
|
snapbox::cmd::Command::cargo_ui()
|
|
.arg("remove")
|
|
.arg("--help")
|
|
.assert()
|
|
.success()
|
|
.stdout_matches(file!["stdout.term.svg"])
|
|
.stderr_matches(str![""]);
|
|
}
|