mirror of
https://github.com/rust-lang/cargo
synced 2024-10-14 03:32:39 +00:00
Change cargo test --doc
test to match stdout
This commit is contained in:
parent
e0e97e8699
commit
69fadcf9f6
|
@ -2071,5 +2071,14 @@ test!(only_test_docs {
|
|||
p.build();
|
||||
|
||||
assert_that(p.cargo("test").arg("--doc"),
|
||||
execs().with_status(0));
|
||||
execs().with_status(0).with_stdout(&format!("\
|
||||
[COMPILING] foo v0.0.1 ([..])
|
||||
[DOCTEST] foo
|
||||
|
||||
running 1 test
|
||||
test bar_0 ... ok
|
||||
|
||||
test result: ok.[..]
|
||||
")));
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue