Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle spaces in the absolute path (#1845) #1847

Merged
merged 11 commits into from
Dec 15, 2021
13 changes: 7 additions & 6 deletions features/formatter_paths.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ Feature: Formatter Paths
Background:
Given a file named "features/a.feature" with:
"""
Feature: some feature
Scenario: some scenario
Given a passing step
Feature: some feature
eoola marked this conversation as resolved.
Show resolved Hide resolved
Scenario: some scenario
Given a passing step
"""
And a file named "features/step_definitions/cucumber_steps.js" with:
"""
const {Given} = require('@cucumber/cucumber')
const {Given} = require('@cucumber/cucumber')

Given(/^a passing step$/, function() {})
Given(/^a passing step$/, function() {})
"""

Scenario: Relative path
Expand All @@ -23,9 +23,10 @@ Feature: Formatter Paths
<duration-stat>
"""

@wip
eoola marked this conversation as resolved.
Show resolved Hide resolved
Scenario: Absolute path
Given "{{{tmpDir}}}" is an absolute path
When I run cucumber-js with `-f summary:{{{tmpDir}}}/summary.txt`
When I run cucumber-js with `-f summary:"{{{tmpDir}}}/summary.txt"`
Then the file "{{{tmpDir}}}/summary.txt" has the text:
"""
1 scenario (1 passed)
Expand Down