Skip to content

Can not run the same command on Windows #38

Open

Description

@qubaoqa

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

Activity

  1. Gaurav14Coder commented on Apr 24, 2025

    @Gaurav14Coder

    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.

  2. qubaoqa commented on Apr 24, 2025

    @qubaoqa
    Author

    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 :(

  3. qubaoqa commented on May 13, 2025

    @qubaoqa
    Author

    Hi team, any one can help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions