Skip to content
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

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

Open
testingShaw opened this issue Aug 12, 2024 · 4 comments

Comments

@testingShaw
Copy link

testingShaw commented Aug 12, 2024

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
Copy link

duranbe commented Oct 7, 2024

Do you have your tests in multiple test suites ?

@thomaswong66
Copy link

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"'

@RathinaaDeepak
Copy link

I am also facing the same issue. This is happening because once cypress parallel splits the feature files, specPattern config overrides and runs all the files matching the pattern. --spec config value gets updated correctly with the split files. Can we have cypres-parallel generate the specPattern config as well ? If it is same as spec, problem will be solved.

@RathinaaDeepak
Copy link

I am also facing the same issue. This is happening because once cypress parallel splits the feature files, specPattern config overrides and runs all the files matching the pattern. --spec config value gets updated correctly with the split files. Can we have cypres-parallel generate the specPattern config as well ? If it is same as spec, problem will be solved.

Hi Team, Is there a way we can achieve this? Would be a very special Christmas Gift for me :)

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

4 participants