|
|
@ -53,33 +53,6 @@ Feature: Markdown |
|
|
And the stderr should not contain "OK" |
|
|
And the stderr should not contain "OK" |
|
|
And the stderr should contain "ERROR" |
|
|
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: |
|
|
|
|
|
""" |
|
|
|
|
|
[Google](https://google.com) |
|
|
|
|
|
""" |
|
|
|
|
|
When I successfully run `liche -v foo.md` |
|
|
|
|
|
Then the stderr should contain "OK" |
|
|
|
|
|
|
|
|
|
|
|
Scenario: Check a markdown file which contains a live link in verbose mode with a long option |
|
|
|
|
|
Given a file named "foo.md" with: |
|
|
|
|
|
""" |
|
|
|
|
|
[Google](https://google.com) |
|
|
|
|
|
""" |
|
|
|
|
|
When I successfully run `liche --verbose foo.md` |
|
|
|
|
|
Then the stderr should contain "OK" |
|
|
|
|
|
|
|
|
|
|
|
Scenario: Check a markdown file which contains live and dead links in verbose mode |
|
|
|
|
|
Given a file named "foo.md" with: |
|
|
|
|
|
""" |
|
|
|
|
|
[Google](https://google.com) |
|
|
|
|
|
[The answer](https://some-say-the-answer-is-42.com) |
|
|
|
|
|
""" |
|
|
|
|
|
When I run `liche -v foo.md` |
|
|
|
|
|
Then the exit status should be 1 |
|
|
|
|
|
And the stderr should contain "OK" |
|
|
|
|
|
And the stderr should contain "ERROR" |
|
|
|
|
|
|
|
|
|
|
|
Scenario: Check 2 markdown files |
|
|
Scenario: Check 2 markdown files |
|
|
Given a file named "foo.md" with: |
|
|
Given a file named "foo.md" with: |
|
|
""" |
|
|
""" |
|
|
@ -104,19 +77,3 @@ Feature: Markdown |
|
|
""" |
|
|
""" |
|
|
When I successfully run `sh foo.sh` |
|
|
When I successfully run `sh foo.sh` |
|
|
Then the stdout should contain exactly "5" |
|
|
Then the stdout should contain exactly "5" |
|
|
|
|
|
|
|
|
Scenario: Check a markdown file which contains a live link with timeout |
|
|
|
|
|
Given a file named "foo.md" with: |
|
|
|
|
|
""" |
|
|
|
|
|
[Google](https://google.com) |
|
|
|
|
|
""" |
|
|
|
|
|
When I successfully run `liche --timeout 10 foo.md` |
|
|
|
|
|
Then the stdout should contain exactly "" |
|
|
|
|
|
|
|
|
|
|
|
Scenario: Set concurrency |
|
|
|
|
|
Given a file named "foo.md" with: |
|
|
|
|
|
""" |
|
|
|
|
|
[Google](https://google.com) |
|
|
|
|
|
""" |
|
|
|
|
|
When I successfully run `liche --concurrency 10 foo.md` |
|
|
|
|
|
Then the stdout should contain exactly "" |
|
|
|
|
|
|