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.
1 parent a3c0ecd commit 7247e5fCopy full SHA for 7247e5f
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