Skip to content

Can not run the same command on Windows #38

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

Open
qubaoqa opened this issue Apr 24, 2025 · 3 comments
Open

Can not run the same command on Windows #38

qubaoqa opened this issue Apr 24, 2025 · 3 comments

Comments

@qubaoqa
Copy link

qubaoqa commented Apr 24, 2025

I have a command

    "bs-test-testing-edge134": "npx bddgen && npx browserstack-node-sdk playwright test --grep @testing --config=./playwright.config.ts --project=edge-134:Windows 11-browserstack'",

it works well on MAC but when I run it on Windows
I show an error can not fidn the project=edge-134:Windows.
I think because the space in project.
Please help me to fix it.
Thank you

@Gaurav14Coder
Copy link

You should encapsulate the entire project argument in double quotes to ensure that the command line interprets it as a single argument. Here is how you can modify your command:
"bs-test-testing-edge134": "npx bddgen && npx browserstack-node-sdk playwright test --grep @testing --config=./playwright.config.ts --project='edge-134:Windows 11-browserstack'",
By using single quotes within the double quotes for the --project argument, you can ensure that the space in the project name is correctly interpreted by the Windows command line.

@qubaoqa
Copy link
Author

qubaoqa commented Apr 24, 2025

You should encapsulate the entire project argument in double quotes to ensure that the command line interprets it as a single argument. Here is how you can modify your command: "bs-test-testing-edge134": "npx bddgen && npx browserstack-node-sdk playwright test --grep @testing --config=./playwright.config.ts --project='edge-134:Windows 11-browserstack'", By using single quotes within the double quotes for the --project argument, you can ensure that the space in the project name is correctly interpreted by the Windows command line.

thank you, I try this suggestion but it does not work :(

@qubaoqa
Copy link
Author

qubaoqa commented May 13, 2025

Hi team, any one can help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants