Skip to content

Commit 704ce77

Browse files
committed
Allow output to be seen in dogfood test
1 parent df3c22c commit 704ce77

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/dogfood.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
1-
use assert_cmd::Command;
1+
use assert_cmd::cargo::CommandCargoExt;
22
use std::{
33
env::var,
44
io::{stderr, Write},
5+
process::Command,
56
sync::Mutex,
67
};
78

89
#[test]
910
fn dogfood() {
1011
preserves_cleanliness("dogfood", || {
1112
let mut command = Command::cargo_bin("rustdoc-prettier").unwrap();
12-
command.arg("src/**/*.rs").assert().success();
13+
command.arg("src/**/*.rs");
14+
let status = command.status().unwrap();
15+
assert!(status.success());
1316
});
1417
}
1518

0 commit comments

Comments
 (0)