Ed Page b14a70fe09 test(cli): Verify terminal styling
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).
2024-02-21 20:20:41 -06:00

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![""]);
}