From f9f97858396f2cd73285095238de850bf3b5323a Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Tue, 6 Aug 2019 22:11:36 -0400 Subject: [PATCH] When this test fails, print out why to assist in debugging --- tests/testing.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/testing.rs b/tests/testing.rs index 92f9b7e1..2b2c0fd0 100644 --- a/tests/testing.rs +++ b/tests/testing.rs @@ -9,7 +9,12 @@ fn mdbook_can_correctly_test_a_passing_book() { let temp = DummyBook::new().with_passing_test(true).build().unwrap(); let mut md = MDBook::load(temp.path()).unwrap(); - assert!(md.test(vec![]).is_ok()); + let result = md.test(vec![]); + assert!( + result.is_ok(), + "Tests failed with {}", + result.err().unwrap() + ); } #[test]