-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
format output paths: allow absolute paths (#906)
resolves #900
- Loading branch information
1 parent
4238dec
commit e306c83
Showing
7 changed files
with
60 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
Feature: Formatter Paths | ||
|
||
Background: | ||
Given a file named "features/a.feature" with: | ||
""" | ||
Feature: some feature | ||
Scenario: some scenario | ||
Given a passing step | ||
""" | ||
And a file named "features/step_definitions/cucumber_steps.js" with: | ||
""" | ||
import {defineSupportCode} from 'cucumber' | ||
defineSupportCode(({Given}) => { | ||
Given(/^a passing step$/, function() {}) | ||
}) | ||
""" | ||
|
||
Scenario: Relative path | ||
When I run cucumber.js with `-f summary:summary.txt` | ||
Then the file "summary.txt" has the text: | ||
""" | ||
1 scenario (1 passed) | ||
1 step (1 passed) | ||
<duration-stat> | ||
""" | ||
|
||
Scenario: Absolute path | ||
Given "{{{tmpDir}}}" is an absolute path | ||
When I run cucumber.js with `-f summary:{{{tmpDir}}}/summary.txt` | ||
Then the file "{{{tmpDir}}}/summary.txt" has the text: | ||
""" | ||
1 scenario (1 passed) | ||
1 step (1 passed) | ||
<duration-stat> | ||
""" | ||
|
||
Scenario: Invalid path | ||
When I run cucumber.js with `-f summary:invalid/summary.txt` | ||
Then it fails | ||
And the error output contains the text: | ||
""" | ||
ENOENT | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2767,6 +2767,10 @@ [email protected]: | |
version "2.0.0" | ||
resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" | ||
|
||
mustache@^2.3.0: | ||
version "2.3.0" | ||
resolved "https://registry.yarnpkg.com/mustache/-/mustache-2.3.0.tgz#4028f7778b17708a489930a6e52ac3bca0da41d0" | ||
|
||
[email protected]: | ||
version "0.0.7" | ||
resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab" | ||
|