Comments (5)
@hcho112 this is will work in local machine without any issue. can help If you can share the error message.
from cypress-parallel.
Hey @hcho112 , were you able to get this working?
from cypress-parallel.
My apologies for late update. Our team decided not to proceed with cypress unit testing so I kind of stopped investigating the issue.
from cypress-parallel.
I am using Cypress for React based component testing and cannot get it to work in parallel. I think what happens is that Webpack is launched for each thread and, as a result, only 1 webpack instance is able to launch in parallel? So as a result only 1 thread ever actually runs. I am using this script (specs exist in src folder):
"cy:parallel": "cypress-parallel -s cy:ct:run -t 2 -d src/**/*.spec.cy.tsx",
The run starts but Webpack shuts down for one of the threads:
[webpack-dev-server] Gracefully shutting down. To force exit, press ^C again. Please wait...
[webpack-dev-middleware] wait until bundle finished: /__cypress/src/index.html
It then resumes on the other thread and a handful of the specs therefore run.
Any ideas?
from cypress-parallel.
Quick update on above for anyone who has similar problem. I was able to fix shortly after typing the above! I needed to remove a hard coded port value from the webpack config. So it was down to a port conflict. With that removed webpack assigns each instance a free port within the 8000 range. Seems ok now.
Interestingly though, the run time is actually slower running the tests in parallel (using an m1 macbook) than when doing it via single cypress instance. I suspect this is down to the overheard of launching 4 webpack instances.
So I actually am not sure cypress-parallel is worth it for when using Cypress for component mounting/testing
from cypress-parallel.
Related Issues (20)
- Found 'path here' instead of resultsPath in cli HOT 2
- "-a" option: removing the escaped quotes HOT 4
- Spec files are not being split in different threads HOT 5
- Question : Does mochawesome .json not come for parallel runs facing issue , getting an issue in after events (facing this issue in 0.11.0) HOT 1
- Cannot exclude tests with Cypress command arguments (-a)
- Ability to list multiple directories to run HOT 1
- Error at installing because the [email protected] doesn't exists HOT 1
- Support yargs "stop parsing" instead of args flag
- How do I pass environment variable as arguments in command line HOT 4
- Is colors.js still an issue for this repo for anyone else? HOT 2
- There is not enough documentation on how to generate and combine reports with multireporters HOT 1
- TypeError: glob is not a function HOT 1
- Update `mocha` to v10.1.0
- Can we pass unique arguments to each thread? HOT 1
- Retries do not work when using cypress-paralllel HOT 2
- When we have cy-grep implemented to select specific tests, running it via cypress-parallel leads to failure while building report (causing buildkite build to fail)
- Unable to see complete spec name in result table HOT 1
- need to run specific test specs on respective thread. HOT 5
- Is it possible to only regenerate parallel-weights.json when the weights have changed?
- Issue: on successful run of one thread execution jenkins stops complete execution for cypress-parallel. HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cypress-parallel.