-
Notifications
You must be signed in to change notification settings - Fork 125
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
need to run specific test specs on respective thread. #177
Comments
Hi Team, can anyone help me with the above task? |
Hi Team, Please help me in resolving the above issue. |
Hi Team, Please have a look into the query. |
Hey hi, if you goto node_module/cypress-parallel/test-suites.js you will find a method/function distributeTestsByWeight(testSuitePaths) which will guide you.
For eg, if you have 7 specs with weights 14, 12, 10, 8, 6, 4, 2 and threads = 4
So, play with it a bit, you will be able to understand. |
I had the same issue. I made a node.js script that will combine tests in folders into files. I never managed to get the tests to pass when running in parallel due to complex state management, but running it this way did manage to get the folders to act like 'threads'. My scripts looked like:
Where -d is defining where my .cy.ts files are. The script compiles them into this location. Just make sure all of the contents of each test file are contained within
|
I have two folders containing spec files:
folder1 having specs with user1
folder2 having specs with user2
i want to run these specs on two threads where thread1 run folder1 specs i.e. user1 specs and thread2 specs should run on thread2.
Please suggest and provide me solution.
The text was updated successfully, but these errors were encountered: