Skip to content

Commit 6b763a3

Browse files
eoolamattwynneblaisepDane Parchment
committed
put quotes around the absolute path (#1845)
added quotes to wrap the path to summary.txt to ensure that paths containing spaces are read properly Co-authored-by: Matt Wynne <[email protected]> Co-authored-by: Blaise Pabon <[email protected]> Co-authored-by: Dane Parchment <[email protected]>
1 parent 704bafa commit 6b763a3

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

features/formatter_paths.feature

+7-6
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ Feature: Formatter Paths
33
Background:
44
Given a file named "features/a.feature" with:
55
"""
6-
Feature: some feature
7-
Scenario: some scenario
8-
Given a passing step
6+
Feature: some feature
7+
Scenario: some scenario
8+
Given a passing step
99
"""
1010
And a file named "features/step_definitions/cucumber_steps.js" with:
1111
"""
12-
const {Given} = require('@cucumber/cucumber')
12+
const {Given} = require('@cucumber/cucumber')
1313
14-
Given(/^a passing step$/, function() {})
14+
Given(/^a passing step$/, function() {})
1515
"""
1616

1717
Scenario: Relative path
@@ -23,9 +23,10 @@ Feature: Formatter Paths
2323
<duration-stat>
2424
"""
2525

26+
@wip
2627
Scenario: Absolute path
2728
Given "{{{tmpDir}}}" is an absolute path
28-
When I run cucumber-js with `-f summary:{{{tmpDir}}}/summary.txt`
29+
When I run cucumber-js with `-f summary:"{{{tmpDir}}}/summary.txt"`
2930
Then the file "{{{tmpDir}}}/summary.txt" has the text:
3031
"""
3132
1 scenario (1 passed)

0 commit comments

Comments
 (0)