We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a3c0ecd + 7247e5f commit 629c09dCopy full SHA for 629c09d
tests/cli/test.rs
@@ -32,3 +32,15 @@ fn mdbook_cli_detects_book_with_failing_tests() {
32
.stderr(predicates::str::is_match(r##"returned an error:\n\n"##).unwrap())
33
.stderr(predicates::str::is_match(r##"Nested_Chapter::Rustdoc_include_works_with_anchors_too \(line \d+\) ... FAILED"##).unwrap());
34
}
35
+
36
+#[test]
37
+fn empty_cli() {
38
+ let mut cmd = mdbook_cmd();
39
+ cmd.assert()
40
+ .failure()
41
+ .code(2)
42
+ .stdout(predicates::str::is_empty())
43
+ .stderr(predicates::str::contains(
44
+ "Creates a book from markdown files",
45
+ ));
46
+}
0 commit comments