From 066a0bd5a903ad3c8cc7e2d9b56b58f3a9d4c693 Mon Sep 17 00:00:00 2001 From: Emmanuel Ola <54866720+eoola@users.noreply.github.com> Date: Fri, 19 Nov 2021 12:23:01 -0500 Subject: [PATCH] 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 Co-authored-by: Blaise Pabon Co-authored-by: Dane Parchment --- features/formatter_paths.feature | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/features/formatter_paths.feature b/features/formatter_paths.feature index e9bb7cb6d..ee4b6318e 100644 --- a/features/formatter_paths.feature +++ b/features/formatter_paths.feature @@ -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 + 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 @@ -23,9 +23,10 @@ Feature: Formatter Paths """ + @wip 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)