hitode909/backstop-retry-failed-scenarios

command does not work in windows

nachotisnes opened this issue · 0 comments

I found that this command does not work in windows.

In my case, after 2 failed scenarios the script tried to execute this command

> backstop.cmd test --filter '^(Scenario1|Scenario2)$'`

It failed with this output

'Scenario2)$'' is not recognized as an internal or external command,
operable program or batch file.

I found that chaning single quotes to double quotes fixed the issue in my environment. Unfortunately I can't test in the moment, so I can't tell if it works correctly there.

Again, in my windows environment, changing the line 68 in Runner.js from:

filterOption = `--filter '${this.filter}'`;`

to:

filterOption = `--filter "${this.filter}"`; `

Solved the issue.