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: """