From b130a2f351e7d3b2d9b09ba1d4d01c6fadf8bbb8 Mon Sep 17 00:00:00 2001 From: Yota Toyama Date: Sat, 18 Nov 2017 13:29:27 +0900 Subject: [PATCH] Test with a markdown file with live and dead links in non-verbose mode --- examples/markdown.feature | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/examples/markdown.feature b/examples/markdown.feature index 25ac7a4..d600a4a 100644 --- a/examples/markdown.feature +++ b/examples/markdown.feature @@ -42,6 +42,17 @@ Feature: Markdown Then the exit status should be 1 And the stderr should contain "ERROR" + Scenario: Check a markdown file which contains live and dead links + Given a file named "foo.md" with: + """ + [Google](https://google.com) + [The answer](https://some-say-the-answer-is-42.com) + """ + When I run `linkcheck foo.md` + Then the exit status should be 1 + And the stderr should not contain "OK" + And the stderr should contain "ERROR" + Scenario: Check a markdown file which contains a live link in verbose mode Given a file named "foo.md" with: """