tnicola / cypress-parallel

Reduce up to 40% your Cypress suite execution time parallelizing the test run on the same machine.
MIT License
584 stars 121 forks source link

Instead of running tests in parallel it is actually running the same test twice #204

Open testingShaw opened 2 months ago

testingShaw commented 2 months ago

Here's the code : "cy:run": "cypress run --browser chrome --headless", "cypress-parallel-all": "node_modules/.bin/cypress-parallel -s cy:run -t 2 -d cypress/tests/workflows -m false",

I am using cucumber so I used -m false. Here you can see from the below log

Catalog Manager Page for XYZ - I want to look at my catalog (example #1) (cypress/tests/workflows/publisher/CatalogManagement.feature)
As a XYZ publisher, I can add a new listing to my demo  - As a publisher, I can access a link on my Dashboard to create a single restraunt listing (cypress/tests/workflows/publisher/AddSingleTitle.feature)
Catalog Manager Page for XYZ - I want to look at my catalog (example #2) (cypress/tests/workflows/publisher/CatalogManagement.feature)
As a XYZ publisher, I can add a new listing to my demo  - As a publisher, I can access a link on my Dashboard to create a single restraunt listing (cypress/tests/workflows/publisher/AddSingleTitle.feature)

Here's my folder look lik. - > cypress/tests/ admin and cypress/tests/publisher

Also I have cloned the Package cypress-parallel to see the demo but unfortunately whenever I run "ng serve" it throws : Error: This command is not available when running the Angular CLI outside a workspace. any walk around here ?? I tried installing the angular cli and angular/core and updating npm but nothing seems to be working.. Any Walk around would be super helpful here

duranbe commented 1 week ago

Do you have your tests in multiple test suites ?

thomaswong66 commented 2 days ago

I'm having the same issue, this is my run command. Looking at the logs, tests are ran on both threads, yielding 2 results. cypress-parallel -s cy:run -t 3 -r cypress-multi-reporters -d 'tests/specs/desktop/product_1/dashboard/settings/**' -p 'reporter-config-parallel.json' -a '"--browser chromium grepTags='smoke' --config-file bamboo-config.js"'